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