2017-02-07 16 views
0

私のWindows 7 PCではすべてが問題ないので、モジュール(electron-window-managerはgitリポジトリからmelanke-WatchJsをインストールします)とnpmがクラッシュします。パッケージがgithub経由でインストールされているときにインストールが失敗する

は今、私はgitのを経由してインストールしようとするすべてのモジュールが同じエラーを返すことに気づい:

npm ERR! git clone C:\Users\Malés\AppData\Roaming\npm-cache\_git-remotes\git-https-git-github-com-visionmedia-express-git-d7a03b88 C:\Users\MALS~1\AppData\Local\Temp\npm-14036-6a70847d\git-cache-3d25afee\fb3946f4549395b2f0d3a166ef74eb407d11549b: 
npm ERR! Windows_NT 10.0.14393 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "git+https://[email protected]/visionmedia/express.git" 
npm ERR! node v6.9.5 
npm ERR! npm v3.10.10 
npm ERR! code 128 

npm ERR! Command failed: git -c core.longpaths=true clone C:\Users\Malés\AppData\Roaming\npm-cache\_git-remotes\git-https-git-github-com-visionmedia-express-git-d7a03b88 C:\Users\MALS~1\AppData\Local\Temp\npm-14036-6a70847d\git-cache-3d25afee\fb3946f4549395b2f0d3a166ef74eb407d11549b 
npm ERR! "git-upload-pack 'C:\Users\Malés\AppData\Roaming\npm-cache\_git_remotes\git-https-git-github-com-visionmedia-express-git-d7a03b88'":git-upload-pack 'C:\Users\Malés\AppData\Roaming\npm-cache\_git-remotes\git-https-git-github-com-visionmedia-express-git-d7a03b88': No such file or directory 
npm ERR! fatal: Could not read from remote repository. 
npm ERR! 
npm ERR! Please make sure you have the correct access rights 
npm ERR! and the repository exists. 
npm ERR! 
npm ERR! 
npm ERR! If you need help, you may report this error at: 
npm ERR!  <https://github.com/npm/npm/issues> 

npm ERR! Please include the following file with any support request: 
npm ERR!  E:\Programming\Electron\MUVTIME_Electron\npm-debug.log 

thisを試してみましたが、私の問題を解決していませんでした。

最新の安定バージョン(npm 3.10.10を含むv6.9.5)のNodeを更新し、管理者モードで同じコマンドを実行して何も解決しませんでした。

助けてください。

+0

キャッシュ全体を削除して、npm installを再度実行してください。 – Baerree

+0

既にそれを試みました。 –

答えて

-2

同じ問題があった... npm installコマンドを起動するときに、管理者としてgit bashまたはコマンドラインコンソールを実行してください。 私のために働きました! ;)

+0

私はOPで、管理者としてコマンドを実行しようとしています... –

関連する問題