1. npm install
ローカルインストール
(1)取付キット がない場合(ディレクトリNPM runコマンド)、 ディレクトリ、現在で実行する 生成ディレクトリコマンド ディレクトリ。(2)できる ローカルにインストールされたパッケージを導入します。 ./node_modules
node_modules
npm
node_modules
require()
2. npm install -g
グローバルインストール
(1)パッケージが上にインストールされます か、あなたの下の インストールディレクトリ。(2)コマンドラインで直接使用することができます。 /usr/local
node
3。npm install --save
(1)ますmsbuild
にパッケージnode_modules
ディレクトリ(2)になりますで添加属性(3)後に実行自動的にインストール、コマンドにディレクトリ(4)の後に実行または指定された変数の値を自動的にインストールしたときにディレクトリ package.json
dependencies
msbuild
npm install
msbuild
node_modules
npm install --production
NODE_ENV
production
msbuild
node_modules
4。npm install --save-dev
(1)ますmsbuild
、パッケージnode_modules
ディレクトリになります(2)に加え属性(3)後に実行コマンド、自動的にインストールにディレクトリ(4)の後に実行または指定された変数の値を、自動インストールではありませんカタログ package.json
devDependencies
msbuild
npm install
msbuild
node_modules
npm install --production
NODE_ENV
production
msbuild
node_modules