osrf / gazebojs

3 stars 3 forks source link

Can't install GazeboJS with different versions of node and npm #8

Closed osrf-migration closed 8 years ago

osrf-migration commented 8 years ago

Original report (archived issue) by Justine Lam (Bitbucket: koalaninja).


This is the error message with:

node -v v4.2.1 npm -v 1.2.18

Justines-MacBook-Pro:gz_node_inst justinelam$ npm install gazebojs npm WARN package.json gz_node_inst@0.0.0 No README.md file found! npm http GET https://registry.npmjs.org/gazebojs npm http 304 https://registry.npmjs.org/gazebojs npm http GET https://registry.npmjs.org/node-gyp npm http 304 https://registry.npmjs.org/node-gyp npm http GET https://registry.npmjs.org/fstream npm http GET https://registry.npmjs.org/glob npm http GET https://registry.npmjs.org/minimatch npm http GET https://registry.npmjs.org/graceful-fs npm http GET https://registry.npmjs.org/mkdirp npm http GET https://registry.npmjs.org/nopt npm http GET https://registry.npmjs.org/osenv npm http GET https://registry.npmjs.org/npmlog npm http GET https://registry.npmjs.org/rimraf npm http GET https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/semver npm http GET https://registry.npmjs.org/tar npm http GET https://registry.npmjs.org/which npm http 304 https://registry.npmjs.org/graceful-fs npm http 304 https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/nopt npm http 304 https://registry.npmjs.org/osenv npm http 304 https://registry.npmjs.org/fstream npm http 304 https://registry.npmjs.org/npmlog npm http 304 https://registry.npmjs.org/minimatch npm http 304 https://registry.npmjs.org/glob npm http 304 https://registry.npmjs.org/rimraf npm http 304 https://registry.npmjs.org/tar npm http 304 https://registry.npmjs.org/semver npm http 304 https://registry.npmjs.org/request npm http 304 https://registry.npmjs.org/which npm ERR! Error: No compatible version found: mkdirp@'^0.5.0' npm ERR! Valid install targets: npm ERR! ["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.1.0","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.3.5","0.4.0","0.4.1","0.4.2","0.5.0","0.5.1"] npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:685:10) npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:607:10 npm ERR! at saved (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7) npm ERR! at FSReqWrap.oncomplete (fs.js:82:15) npm ERR! If you need help, you may report this log at: npm ERR! http://github.com/isaacs/npm/issues npm ERR! or email it to: npm ERR! npm-@googlegroups.com

npm ERR! System Darwin 14.5.0 npm ERR! command "mailto:npm-@googlegroups.com">npm-@googlegroups.com

npm ERR! System Darwin 14.5.0 npm ERR! command "/usr/local/Cellar/node/4.2.1/bin/node" "/usr/local/bin/npm" "install" "gazebojs" npm ERR! cwd /Users/justinelam/Sites/gazebo tutorial/gz_node_inst npm ERR! node -v v4.2.1 npm ERR! npm -v 1.2.18 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/justinelam/Sites/gazebo tutorial/gz_node_inst/npm-debug.log npm ERR! not ok code 0

npm ERR! npm -v 1.2.18

osrf-migration commented 8 years ago

Original comment by Hugo Boyer (Bitbucket: hugomatic, GitHub: hugomatic).


Thank you for the report.

Gazebojs installation on OSX is tricky since there are no default nodejs and npm versions (Ubuntu ships with node.js 0.10 by default). GazeboJs works with node 0.10.x and is not compatible with later versions. There are also bugs related with certain versions of Xcode and missing standard libraries in /usr/lib.

There is now a new tutorial specific to Gazebojs on OSX. It should address the most common pitfalls. It is now open for review here . It features a troubleshooting section that should cover most problems. In the future, gazebojs should be upgraded to work with the most recent stable release of node.