簡體   English   中英

構建失敗 Hybris ant npminstall

[英]BUILD FAILED 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。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM