【npm】npm-npm install官方文档说明

来源:互联网 发布:大数据丛书 编辑:程序博客网 时间:2024/05/19 09:13

npm install (in package directory, no arguments):

在包文件夹里面,没有参数;

Install the dependencies in the local node_modules folder.

在本地node_modules文件夹里面安装dependencies;


In global mode (ie, with -g or --global appended to the command), it installs the current package context (ie, the current working directory) as a global package.

在global模式中(ie,带有-g或者-global附加命令),他安装目前包上下文(ie,目前工作的文件夹)


By default, npm install will install all modules listed as dependencies inpackage.json.

默认情况下,install将安装package.json列表所有作为依赖的组件;

With the --production flag (or when the NODE_ENV environment variable is set to production), npm will not install modules listed in devDependencies.

带有--production flag(或者当NODE_ENV环境变量被设置生产),npm将不会安装devDependencies中的组件

点我看官方文档


原创粉丝点击