jenkins执行npm install失败:Error: yorkie@2.0.0 install: `node bin/install.js
最近新做一个使用vue开发的后台管理系统,要和服务端项目一起启动并更新测试服等服务,构建工具使用的jenkins在jenkins是哪个运行npm install命令时报错误如下:yorkie@2.0.0 install /data/.jenkins/workspace/local5-sc-console/sc-admin-view/node_modules/yorkienode bin/insta
最近新做一个使用vue开发的后台管理系统,统一交由服务端和后台逻辑一起进行更新操作,前端只负责开发,构建工具使用的jenkins,服务端需要在jenkins上面打包,并通过映射到dist文件夹下的index.html来实现访问打包后的项目
在jenkins时运行npm install命令时报错误如下:
yorkie@2.0.0 install /data/.jenkins/workspace/local5-sc-console/sc-admin-view/node_modules/yorkie
node bin/install.js
internal/modules/cjs/loader.js:983
throw err;
^
Error: Cannot find module ‘/data/.jenkins/workspace/local5-sc-console/sc-admin-view/node_modules/yorkie/bin/install.js’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
at Function.Module._load (internal/modules/cjs/loader.js:862:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
code: ‘MODULE_NOT_FOUND’,
requireStack: []
}
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yorkie@2.0.0 install: node bin/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yorkie@2.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
解决办法:后尝试使用淘宝镜像和cnpm命令都失败,最后使用sudo npm install成功下载了依赖
更多推荐
所有评论(0)