2016-07-24 6 views
0

私は最新のubuntuドッカー画像をプルダウンし、ノード、npmなどをイメージにインストールしました。私は自分のプロジェクトでnpm installをやろうとしています。私はこのような3つのエラーを受け取り続けます。初めて出現したときのみ表示されます。だから、ドックを使用するとnpm install受信エラーが発生する

path.js:7 
throw new TypeError('Path must be a string. Received ' + inspect(path)); 
^ 

TypeError: Path must be a string. Received { url: 'https://raw.github.com/imagemin/pngquant-bin/v0.3.5/vendor/linux/x64/pngquant', 
name: 'pngquant', 
os: 'linux', 
arch: 'x64' } 
at assertPath (path.js:7:11) 
at Object.basename (path.js:1357:5) 
at /MyProject/WebContent/node_modules/download/index.js:35:43 
at each (/MyProject/WebContent/node_modules/download/node_modules/each-async/each-async.js:63:4) 
at module.exports (/MyProject/WebContent/node_modules/download/index.js:33:5) 
at /MyProject/WebContent/node_modules/bin-wrapper/index.js:108:20 
at /MyProject/WebContent/node_modules/bin-wrapper/index.js:141:24 
at /MyProject/WebContent/node_modules/bin-check/index.js:30:20 
at /MyProject/WebContent/node_modules/executable/index.js:39:20 
at FSReqWrap.oncomplete (fs.js:117:15) 

私は私のnpm installgulp buildが失敗した後gulp buildを行うために行きます。しかし、これらのタイプエラーが発生しても、npm installは「成功」します。

注目に値する一つのこと、私は私のドッキングウィンドウのイメージにこの設定を追加しました:git config --global url."https://".insteadOf git://

以上のノートのカップル:

  1. これは私のローカルマシンのMacやWindows上で動作します。
  2. ノード-v V6.2.2 NPM -v 3.9.5

答えて

0

Path must be a string.

これは4とNPM 2、次いでnpm installとをノードに格下げノード6

の問題ですgulp buildが動作します。

関連する問題