我安装了一个模块(electron-window-manager
从其git存储库安装melanke-WatchJs
)和npm
崩溃,仅在我的Windows 10笔记本电脑中崩溃,因为在我的Windows 7 PC中一切正常。< / p>
现在我注意到我尝试通过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://git@github.com/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并没有解决我的问题。
我已经重新安装了Git,为最新的稳定版本更新了Node(v6.9.5,其中包括npm 3.10.10),在管理员模式下运行相同的命令,没有解决它。
请帮忙。
答案 0 :(得分:-2)
有同样的问题...... 启动npm install命令时,以管理员身份运行git bash或命令行控制台 为我工作! ;)