is io.js hijacking npm's global?

跟風遠走 提交于 2019-12-25 03:04:09

问题


Having installed io.js aside node.js, I notice the following oddity trying to upgrade node-gyp. When trying out npm install -g node-gyp I get the following at the top of the output:

/usr/local/lib/iojs-v3.3.1-linux-x64/bin/node-gyp -> /usr/local/lib/iojs-v3.3.1-linux-x64/lib/node_modules/node-gyp/bin/node-gyp.js
node-gyp@3.0.3 /usr/local/lib/iojs-v3.3.1-linux-x64/lib/node_modules/node-gyp

I am a bit concerned that io.js installation, or the hack used for upgrading it, have somehow altered the way npm works with global package installation. I similarly get references to iojs also with other npm commands, e.g. with npm install -g npm@latest, so it may seem like npm is now either giving io.js special care with some unique log messages, or not installing for node.js but rather only for iojs.

  • Do node.js and io.js access the same npm global depo?
  • Otherwise, does io.js hijack the -g destination? in which case, what might be the safest way to revert npm to work with the node.js global depo, short of purging npm altogether?

Looks like npm install -g only install to an io.js path on my system now...

来源:https://stackoverflow.com/questions/32607923/is-io-js-hijacking-npms-global

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!