简体   繁体   English

npm install和流星npm install有什么区别

[英]What is difference between npm install and meteor npm install

I am working on Meteor and want to know that what is the difference between 我正在研究流星,想知道两者之间有什么区别

npm install and meteor npm install . npm installmeteor npm install

Thanks 谢谢

According to Meteor Development Group's comments in the official forum , the difference is as follows; 根据流星发展集团在官方论坛上的评论,差异如下:

meteor npm calls the bundled npm version, so it doesn't require npm to be installed globally , That is just a convenience however, so if you do have npm installed using that will work perfectly fine. meteor npm调用捆绑的npm版本,因此它不需要在全球范围内安装npm ,但这只是一个方便,因此,如果确实安装了npm,则可以很好地工作。 That being said, it is a good practice to get into always using meteor npm , as that way you can make sure you're using the same npm version that has been tested with your current version of Meteor . 话虽如此,始终使用meteor npm是个好习惯,因为这样可以确保您使用的是与当前Meteor版本测试过的npm版本相同的版本。

When using meteor npm you can make sure that you are using the same npm version that has been tested with your current Meteor's version. 使用meteor npm ,可以确保使用与当前流星版本相同的npm版本。

When using npm install it just uses the global npm on your machine. 使用npm install它仅在您的计算机上使用全局npm So i'd advise to use meteor npm 所以我建议使用meteor npm

This may help you to understand difference between npm install and meteor npm install 这可以帮助您了解npm install和流星npm install之间的区别

The former is installing npm packages, which will be listed in packages.json and located in the node modules directory and need to be imported into your code. 前者正在安装npm软件包,这些软件包将列在packages.json中,位于节点模块目录中,需要导入到您的代码中。 The latter is using atmosphere packages which will be listed under .meteor/packages and will be included in your build (no need to import). 后者正在使用大气程序包,这些程序包将列在.meteor / packages下,并将包含在您的版本中(无需导入)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM