尝试在 windows CLI 上启动 gulp 时出错
Error when trying to initiate gulp on windows CLI
我试图在我的电脑上 运行 一个 gulpfile,但我收到了这个错误
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
at module.exports (C:\Users\Osinowo\boot6\node_modules\node-sass\lib\binding.js:13:13)
at Object.<anonymous> (C:\Users\Osinowo\boot6\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (node:internal/modules/cjs/loader:1102:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1131:10)
at Module.load (node:internal/modules/cjs/loader:967:32)
at Function.Module._load (node:internal/modules/cjs/loader:807:14)
at Module.require (node:internal/modules/cjs/loader:991:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object.<anonymous> (C:\Users\Osinowo\boot6\node_modules\gulp-sass\index.js:166:21)
at Module._compile (node:internal/modules/cjs/loader:1102:14)
这里是我电脑上安装的node版本nodev15.3.0
和node-sass:
node-sass 5.0.0 (Wrapper) [JavaScript]
libsass 3.5.5 (Sass Compiler) [C/C++]
非常感谢您的建议!
您应该将节点至少降级到 v14
如果您转到错误跟踪中提到的 url,
https://github.com/sass/node-sass/releases/tag/v4.14.1
您会看到 windows 仅支持节点 14。
我试图在我的电脑上 运行 一个 gulpfile,但我收到了这个错误
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
at module.exports (C:\Users\Osinowo\boot6\node_modules\node-sass\lib\binding.js:13:13)
at Object.<anonymous> (C:\Users\Osinowo\boot6\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (node:internal/modules/cjs/loader:1102:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1131:10)
at Module.load (node:internal/modules/cjs/loader:967:32)
at Function.Module._load (node:internal/modules/cjs/loader:807:14)
at Module.require (node:internal/modules/cjs/loader:991:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object.<anonymous> (C:\Users\Osinowo\boot6\node_modules\gulp-sass\index.js:166:21)
at Module._compile (node:internal/modules/cjs/loader:1102:14)
这里是我电脑上安装的node版本nodev15.3.0
和node-sass:
node-sass 5.0.0 (Wrapper) [JavaScript]
libsass 3.5.5 (Sass Compiler) [C/C++]
非常感谢您的建议!
您应该将节点至少降级到 v14
如果您转到错误跟踪中提到的 url, https://github.com/sass/node-sass/releases/tag/v4.14.1
您会看到 windows 仅支持节点 14。