centos執行npm install 報錯:error: RPC failed; result=22, HTTP code = 404,具體信息如下:
npm WARN The package babel-plugin-jsx-v-model is included as both a dev and production dependency.
npm ERR! code 128
npm ERR! Command failed: git clone --mirror -q http://handenglong:[email protected]/v4.0.16/web-frame-v1.3.73 /root/.npm/_cacache/tmp/git-clone-e9f676f4/.git
npm ERR! warning: 模版未找到 /tmp/pacote-git-template-tmp/git-clone-226364eb
npm ERR! error: RPC failed; result=22, HTTP code = 404
npm ERR! fatal: The remote end hung up unexpectedly
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-05-27T10_58_46_435Z-debug.log
解決方案:
將npm install 改成 npm install -g npm即可