Node.js 运行旧版本的JointsWP

Node.js 运行旧版本的JointsWP,node.js,npm,sass,gulp,Node.js,Npm,Sass,Gulp,我有一个运行JointsWP 4的旧项目。不知怎的,我不能再运行和编译了。不幸的是,这超出了我的知识范围 我试图再次运行npm安装,但它只是抛出了错误。 如何使此项目恢复运行 非常感谢 ... gyp: No Xcode or CLT version detected! gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess

我有一个运行JointsWP 4的旧项目。不知怎的,我不能再运行和编译了。不幸的是,这超出了我的知识范围

我试图再次运行npm安装,但它只是抛出了错误。 如何使此项目恢复运行

非常感谢

...

gyp: No Xcode or CLT version detected!
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/bramroos/Sites/alert/wp-content/themes/alert/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 20.1.0
gyp ERR! command "/usr/local/bin/node" "/Users/bramroos/Sites/alert/wp-content/themes/alert/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/bramroos/Sites/alert/wp-content/themes/alert/node_modules/gulp-sass/node_modules/node-sass
gyp ERR! node -v v12.18.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@3.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@3.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/bramroos/.npm/_logs/2020-11-25T13_15_12_661Z-debug.log

错误消息表示您正在尝试使用
节点-sass@3.13.1
使用Node.js 12.18.0。说明Node.js 12.18.0需要
Node sass
4.12或更新版本


从支持表判断,
节点sass
3.x目前完全不受支持。您可以尝试将
节点sass
更新为4.x,也可以使用node.js版本管理器(如
nvm
)尝试使用较旧版本的
节点构建它,谢谢Trott。我决定将主题更新为最新的JointsWP。问题解决了。