node.js的包安装的几种方式:
(1)、npm install xxx -g 时, 模块将被下载安装到【全局目录】中;
(2)、npm install xxx --save时,
Install required npm module and save it as a project dependency (it will appear in package.json
)
(3)、npm install xxx # 本地安装
node.js的包安装的几种方式:
(1)、npm install xxx -g 时, 模块将被下载安装到【全局目录】中;
(2)、npm install xxx --save时,
Install required npm module and save it as a project dependency (it will appear in package.json
)
(3)、npm install xxx # 本地安装