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

error when running npm install #18

Closed
jared201 opened this issue Jul 28, 2013 · 6 comments
Closed

error when running npm install #18

jared201 opened this issue Jul 28, 2013 · 6 comments

Comments

@jared201
Copy link

got this error during npm install

324 error Error: version not found: 1.3.7-meteor : mongodb/1.3.7-meteor
324 error at RegClient. (/usr/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:272:14)
324 error at Request.self.callback (/usr/lib/node_modules/npm/node_modules/request/index.js:148:22)
324 error at Request.EventEmitter.emit (events.js:98:17)
324 error at Request. (/usr/lib/node_modules/npm/node_modules/request/index.js:876:14)
324 error at Request.EventEmitter.emit (events.js:117:20)
324 error at IncomingMessage. (/usr/lib/node_modules/npm/node_modules/request/index.js:827:12)
324 error at IncomingMessage.EventEmitter.emit (events.js:117:20)
324 error at _stream_readable.js:910:16
324 error at process._tickCallback (node.js:415:13)
325 error If you need help, you may report this log at:
325 error http://github.com/isaacs/npm/issues
325 error or email it to:
325 error npm-@googlegroups.com
326 error System Linux 3.2.0-40-virtual
327 error command "/usr/bin/node" "/usr/bin/npm" "install"
328 error cwd /home/ubuntu/bike_alarm_conv
329 error node -v v0.10.13
330 error npm -v 1.3.2

@BretFisher
Copy link
Contributor

See issue #17 for workaround.

@jared201
Copy link
Author

Thank you!! that worked on Modulus and Nodejitsu but not on Heroku

@BretFisher
Copy link
Contributor

Heroku may not like the sed command. You might want to check on that.

I now understand this is actually a Meteor issue, or rather a mismatch between how Meteor builds and how Demeteorizer searches for the packages used by Meteor. In Meteor 0.6.4.1 they temporarily relased it with their own fork of the mongo driver, which isn't in npm, and they called it "1.3.7-meteor" with a custom package url. Demeteorizer doesn't know how to deal with that custom package type yet. I'm hoping this will be fixed in Meteor 0.6.5 or 0.7 with them going back to the standard npm package driver. There's a few workarounds mentioned here.

Here's the options I see:

  • roll back to Meteor 0.6.4, and wait for 0.6.5 or version which uses npm mongo driver again
  • get sed working to replace the custom package during build. options could be
    • sed -i.bak s/1.3.7-meteor/1.3.12/ package.json
    • sed -i.bak s/1.3.7-meteor/https:\/\/github.com\/meteor\/node-mongodb-native\/tarball\/20e17040c5eccf3c431788dd281b8099cd2099f8/ package.json
  • fork demeteorizer and submit pull request that handles this issue somehow

@BretFisher
Copy link
Contributor

@InconceivableDuck you understand best how Demeteorizer searches for built in packages in .meteor. Got any idea on how we could fix this perm within Demeteorizer? I don't even know if .meteor install would have the custom package URL in it for extracting... or if we just have to put in a hack for this particular issue to replace 1.3.7-meteor if found.

@InconceivableDuck
Copy link
Contributor

The Meteor guys fixed a security whole in the MongoDB node driver. They forked the driver and created a new version called 1.3.7-meteor, which is not available in npm. I'm looking now to see if I can point the dependency to the github repo to install from there instead of npm.

@InconceivableDuck
Copy link
Contributor

Fixed in 0.2.4 of demeteorizer.

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

3 participants