`npm install` 和 Meteor 1.3 中的 `meteor npm install` 一样吗? [英] Is `npm install` same as `meteor npm install` in Meteor 1.3?

查看:67
本文介绍了`npm install` 和 Meteor 1.3 中的 `meteor npm install` 一样吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过一些meteor库,我注意到npm installmeteor npm install都在指令中使用.我知道 Meteor 1.3 引入了对 npm 模块的支持,那么这两个命令有什么区别?

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?

推荐答案

meteor npm install 将把 node_modules 文件夹放在你的项目的根目录下并修改 package.json 在你的流星项目的根目录.

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.

虽然 npm install 将相对于您的当前目录工作.

While npm install will work relative to your current directory.

资料来源:经验.我不是 100% 肯定,但我已经用了相当多的量.

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

这篇关于`npm install` 和 Meteor 1.3 中的 `meteor npm install` 一样吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆