2016-04-18 216 views
0

プライベートモジュールのコールストレージをインストールできません:ルートパスにnpm installと入力すると0.1.1をインストールできません。npmインストールエラー4058、ウィンドウにプライベートモジュールをインストールできない

私は、このモジュールをインストールするには、package.jsonを書く:

"dependencies": { 
    "storage": "file:modules/storage" 
} 

そして、私はまた、すでに民間モジュールstroageでpackage.jsonを書き、それがうまく前に、Windows上で、よく私のLinux上での作業だが、1その日、私はエラーに-4058

を発生し、インストールし、エラーメッセージが表示されます。

909 verbose stack Error: ENOENT: no such file or directory, scandir 'C:\Users\vincent_lin\AppData\Roaming\npm-cache\storage\0.1.1\package.tgz'
909 verbose stack at Error (native)
910 verbose cwd D:\networkteam\meta\git_meta_static_develop
911 error Windows_NT 6.1.7601
912 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
913 error node v4.4.2
914 error npm v2.15.0
915 error path C:\Users\vincent_lin\AppData\Roaming\npm-cache\storage\0.1.1\package.tgz
916 error code ENOENT
917 error errno -4058
918 error syscall scandir
919 error enoent ENOENT: no such file or directory, scandir 'C:\Users\vincent_lin\AppData\Roaming\npm-cache\storage\0.1.1\package.tgz'
919 error enoent This is most likely not a problem with npm itself 919 error enoent and is related to npm not being able to find a file.
920 verbose exit [ -4058, true ]

PS:私は投与とPowerShellを使用しようとしましたし、私はパスをチェックしますC:\Users\vincent_lin\AppData\Roaming\npm-cache\storage\0.1.1\package.tgz が正しいです。
そして、npmを最新のバージョンに更新しましたが、まだ存在しています。

ありがとうございました。

答えて

0

Windowsでは、\スラッシュと/スラッシュを使用する必要があります。

で始まる相対パスを入力してください\

例:。"dependencies": { "storage": "file:.\modules\storage" }

またはドライブ文字で始まる完全なパスを提供します。

+0

ありがとうございます、私はそれを変更するあなたの提案に従いますが、同じエラーメッセージを返します。 –

+0

私の編集 –

+0

を参照してください。おそらく、jsonパーサーがWindows用の自動転送を行いますか?私はそれについては分かりません。私はそれを修正し、jsonエラーの解析に失敗しました。 –

関連する問題