archer-ui 安装错误

Blade 未结 1 142
459008080
459008080 剑童 2023-08-19 10:18

一、该问题的重现步骤是什么?

1. 安装yarn并配置淘宝源

2. cd archerui

3. yarn install


二、你期待的结果是什么?实际看到的又是什么

期待正常执行

实际报错


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

archer-ui 1.2.1 mac

四、请提供详细的错误堆栈信息,这很重要。

make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/lsup/Documents/bladex/archerui/node_modules/node-sass/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Darwin 22.5.0
gyp ERR! command "/usr/local/bin/node" "/Users/lsup/Documents/bladex/archerui/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/lsup/Documents/bladex/archerui/node_modules/node-sass
gyp ERR! node -v v16.20.2
gyp ERR! node-gyp -v v3.8.0

五、若有更多详细信息,请在下面提供。

文档中写的版本是node 10, 但是切换到10之后会报另外的错误,应该是有些需要node 16的版本

error commander@11.0.0: The engine "node" is incompatible with this module. Expected version ">=16". Got "10.24.1"

error Found incompatible module.


1条回答
  • 2023-08-21 19:50

    应该是升级了原来版本,现在需要用到nodejs16+

    0 讨论(0)
提交回复