java - 构建失败 Hybris ant npminstall
问题描述
每个人。我遇到了无法在 Hybris 中执行 ant npminstall 命令的问题(我也尝试将它作为 sudo 执行)。{hybris.home}/bin/modules/npm-ancillary/npmancillary/resources/npm/node/ 显示所需的版本是 node-v10.7.0 所以我将它安装在我的 Mac 上。没有改变。谁能帮我修一下?
日志:
[exec] gyp verb build dir attempting to create "build" dir: /Users/SomeUser/Work/Hybris1905/hybris/bin/modules/npm-ancillary/npmancillary/resources/npm/node_modules/node-sass/build
[exec] gyp ERR! configure error
[exec] gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/SomeUser/Work/Hybris1905/hybris/bin/modules/npm-ancillary/npmancillary/resources/npm/node_modules/node-sass/build'
[exec] gyp ERR! System Darwin 19.6.0
[exec] gyp ERR! command "/Users/SomeUser/Work/Hybris1905/hybris/bin/modules/npm-ancillary/npmancillary/resources/npm/node/node-v10.7.0-darwin-x64/bin/node" "/Users/SomeUser/Work/Hybris1905/hybris/bin/modules/npm-ancillary/npmancillary/resources/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
[exec] gyp ERR! cwd /Users/SomeUser/Work/Hybris1905/hybris/bin/modules/npm-ancillary/npmancillary/resources/npm/node_modules/node-sass
[exec] gyp ERR! node -v v10.7.0
[exec] gyp ERR! node-gyp -v v3.8.0
[exec] gyp ERR! not ok
[exec] Build failed with error code: 1
[exec] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
[exec] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 install: `node install`
[exec] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
[exec]
[exec] npm ERR! code ELIFECYCLE
[exec] npm ERR! errno 1
[exec] npm ERR! node-sass@4.11.0 postinstall: `node scripts/build.js`
[exec] npm ERR! Exit status 1
[exec] npm ERR!
[exec] npm ERR! Failed at the node-sass@4.11.0 postinstall script.
[exec] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[exec]
[exec] npm ERR! A complete log of this run can be found in:
[exec] npm ERR! /Users/SomeUser/.npm/_logs/2021-06-05T22_10_22_301Z-debug.log
BUILD FAILED
/Users/SomeUser/Work/Hybris1905/hybris/bin/modules/npm-ancillary/npmancillary/buildcallbacks.xml:315: The following error occurred while executing this line:
/Users/SomeUser/Work/Hybris1905/hybris/bin/modules/npm-ancillary/npmancillary/buildcallbacks.xml:115: exec returned: 1
解决方案
只需要安装另一个版本的 NodeJS。
推荐阅读
- powershell - 如何使用纠缠框架编写发送邮件消息的测试用例
- gitlab - GitLab CI/CD 不添加 .env 文件
- django - Django:切换登录用户
- python - 获取阶跃函数执行结果
- jquery - 如何使自定义 Owl Carousel 点可点击?
- reactjs - Twilio + React:如何在通话期间更改音频或视频输入设备?
- loops - 通过 Datastage 上的触发器启动序列
- azure - 如何使用 Azure DevOps Rest API 创建多个文件夹
- reactjs - React 组件在商店更新之前得到渲染
- java - Microsoft.CognitiveServices.Speech 在发布应用程序 windows 服务器后不起作用