【问题标题】:Running older version JointsWP运行旧版本 JointsWP
【发布时间】:2020-11-25 13:29:13
【问题描述】:

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

我尝试再次运行 npm install 但它只是出现错误。 如何让这个项目恢复运行?

非常感谢

...

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.js npm sass gulp


    【解决方案1】:

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

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

    【讨论】:

    • 谢谢特洛特。我决定将主题更新为最新的 JointsWP。问题解决了。
    猜你喜欢
    • 1970-01-01
    • 2013-10-02
    • 2013-03-04
    • 2014-08-04
    • 2020-11-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多