Is `npm install` same as `meteor npm install` in Meteor 1.3?

淺唱寂寞╮ 提交于 2019-11-30 18:49:51

问题


Going through some meteor libraries, I notice that npm install and meteor npm install are both used in instructions. I know Meteor 1.3 introduced support for npm modules, so what is the difference between these two commands?


回答1:


meteor npm install will place the node_modules folder at the root of your project and modify the package.json at the root of your meteor project.

While npm install will work relative to your current directory.

Source: Experience. I'm not 100% certain, but I have used them both a fair amount.




回答2:


meteor npm will run npm that has been bundled with meteor, this may be a different version than the version of npm installed globally on your system.

You can check versions like meteor npm -v and npm -v



来源:https://stackoverflow.com/questions/38090327/is-npm-install-same-as-meteor-npm-install-in-meteor-1-3

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