Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing from a github repo #93

Open
ChrisCinelli opened this issue Aug 20, 2015 · 4 comments
Open

Problem installing from a github repo #93

ChrisCinelli opened this issue Aug 20, 2015 · 4 comments

Comments

@ChrisCinelli
Copy link

In the README you have:

 If you need to install an npm module from a specific commit, use the syntax:

 {
   "googleapis": "https://github.com/bradvogel/google-api-nodejs-client/archive/d945dabf416d58177b0c14da64e0d6038f0cc47b.tar.gz"
 }

But when I use:

   {
      "seneca": "https://github.com/brycereynolds/seneca/archive/6e9de08b1cf1a954a07353019ddf9e7c054f9282.tar.gz"
   }

I get:

    => Started proxy.
    => Started MongoDB.
    npm-container: updating npm dependencies -- seneca...
    npm ERR! not a package
    /var/folders/x2/tj1zhbcd6_16j5hyj87q696m0000gn/T/npm-14561-f7kQwOsM/github.com/brycereynolds/seneca-mem-store.git
    npm ERR! Error: ENOENT, open
    '/var/folders/x2/tj1zhbcd6_16j5hyj87q696m0000gn/T/npm-14561-f7kQwOsM/github.com/brycereynolds/seneca-mem-store.git-unpack/package.json'
    npm ERR! If you need help, you may report this *entire* log,
    npm ERR! including the npm and node versions, at:
    npm ERR!     <http://github.com/npm/npm/issues>

    npm ERR! System Darwin 13.4.0
    npm ERR! command
    "/Users/cc/.meteor/packages/meteor-tool/.1.1.4.wsrqju++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
    "/Users/cc/.meteor/packages/meteor-tool/.1.1.4.wsrqju++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
    "install"
    "https://github.com/brycereynolds/seneca/archive/6e9de08b1cf1a954a07353019ddf9e7c054f9282.tar.gz"
    npm ERR! cwd
    /Users/cc/myapp/packages/npm-container/.npm/package-new-gkzq92
    npm ERR! node -v v0.10.36
    npm ERR! npm -v 1.4.28
    npm ERR! path
    /var/folders/x2/tj1zhbcd6_16j5hyj87q696m0000gn/T/npm-14561-f7kQwOsM/github.com/brycereynolds/seneca-mem-store.git-unpack/package.json
    npm ERR! code ENOENT
    npm ERR! errno 34
    npm ERR! not ok code 0

    => Errors prevented startup:

       While building package npm-container:
       error: couldn't install npm package

    => Your application has errors. Waiting for file change.
@letmaik
Copy link

letmaik commented Sep 17, 2015

I have the same problem on Travis CI, but I'm not sure where the github dependency gets pulled in: https://travis-ci.org/Reading-eScience-Centre/covjson-reader/builds/80837100

EDIT: Sorry, just noticed this is not the official npm repository. But maybe we see some connections. I'm not using meteor.

@letmaik
Copy link

letmaik commented Sep 18, 2015

Problem solved, I just used a newer node/npm version (0.12 or 4).

@ilyaigpetrov
Copy link

Packages from commits are different from those published on npm. In my case package from commit was not build and thus not ready to be required.

@magicalcows
Copy link

I'm having a similar problem, though I'm getting a must declare exact version of dependency error, not sure what I'm doing wrong:

My packages.json file:

{
  "externalify": "0.1.0",
  "material-ui": "0.13.4",
  "formsy-react": "0.17.0",
  "formsy-material-ui": "https://github.com/magicalcows/formsy-material-ui/archive/8bc6827d59efb88b7640e05b1686ae760e79650.tar.gz",
  "babelify": "7.2.0"
}

The output:

D:\projects\formsy-mui-demo>meteor
[[[[[ ~\D\projects\formsy-mui-demo ]]]]]

=> Started proxy.
=> Errors prevented startup:

   While reading package from `/D/projects/formsy-mui-demo/packages/npm-container`:
   package.js:14:7: must declare exact version of dependency:
   formsy-material-ui@https://github.com/magicalcows/formsy-material-ui/archive/8bc6827d59efb88b7640e05b1686ae760e79650.tar.gz

=> Your application has errors. Waiting for file change.
=> Started MongoDB.

FWIW when I try to create the release based on the commit using the full commit hash, I get a 500 error from github. I had to take one character off the end of the hash to get it to work, if that matters.

From my versions file in .meteor:

meteorhacks:npm@1.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants