运行 旧版本 JointsWP

Running older version JointsWP

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

我已经尝试 运行 npm install 再次安装,但它只会出现错误。 如何备份此项目 运行ning?

非常感谢

...

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

错误消息表明您正在尝试将 node-sass@3.13.1 与 Node.js 12.18.0 一起使用。 support table for node-sass 表示 Node.js 12.18.0 需要 node-sass 4.12 或更新版本。

从支持table来看,node-sass3.x目前完全不支持。您可以尝试将 node-sass 更新为 4.x,或者您可以使用像 nvm 这样的 Node.js 版本管理器来尝试使用旧版本的 node 构建它。