Roh*_*rma 5 node.js npm jenkins
当尝试运行npm installJenkins时,我收到此消息。我可以分享很多信息,但我希望看到这一点可以告诉专家眼哪里出了问题。如果您觉得需要我的package.json文件或任何其他信息,请发表评论。
+ npm install
npm WARN `git config --get remote.origin.url` returned wrong result (https://github.com/DaftMonk/grunt-build-control) fatal: failed to stat '.': No such file or directory
npm ERR! git clone https://github.com/DaftMonk/grunt-build-control fatal: Could not change back to 'C:/Windows/system32/config/systemprofile/AppData/Roaming/npm-cache/_git-remotes/https-github-com-DaftMonk-grunt-build-control-7e4d577b': No such file or directory
npm ERR! Error: Command failed: fatal: Could not change back to 'C:/Windows/system32/config/systemprofile/AppData/Roaming/npm-cache/_git-remotes/https-github-com-DaftMonk-grunt-build-control-7e4d577b': No such file or directory
npm ERR!
npm ERR! at ChildProcess.exithandler (child_process.js:648:15)
npm ERR! at ChildProcess.emit (events.js:98:17)
npm ERR! at maybeClose (child_process.js:756:16)
npm ERR! at Process.ChildProcess._handle.onexit (child_process.js:823:5)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Program Files (x86)\Jenkins\jobs\WEB001\workspace
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! code 128
Build step 'Execute shell' marked build as failure
Finished: FAILURE
Run Code Online (Sandbox Code Playgroud)
有一种感觉,Windows 上的 jenkins 用户的 npm 缓存目录全错了。你可以通过 npm config 将 npm 缓存设置到不同的目录。npm 配置集缓存 C:\blabla\npm-cache --global
| 归档时间: |
|
| 查看次数: |
1650 次 |
| 最近记录: |