首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >构建失败的Hybris ant npminstall

构建失败的Hybris ant npminstall
EN

Stack Overflow用户
提问于 2021-06-06 07:27:39
回答 1查看 297关注 0票数 0

所有人。我遇到了一个问题,我不能在Hybris中执行ant npminstall命令(我也尝试以sudo的身份执行它)。{hybris.home}/bin/modules/npm-ancillary/npmancillary/resources/npm/node/显示所需的版本是node-v10.7.0,所以我在我的Mac上安装了它。什么都没变。有人能帮我修一下吗?

日志:

代码语言:javascript
复制
    [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
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-07-12 18:37:20

只需要安装另一个版本的NodeJS。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67854657

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档