我使用 webpack 4、sass、pug 和 bemto。Windows 上的模块工作正常,但在 Ubuntu 上:
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Run Code Online (Sandbox Code Playgroud)
我试过输入命令:
sudo npm install -g --unsafe-perm node-sass
Run Code Online (Sandbox Code Playgroud)
>
(node:8310) [DEP0139] DeprecationWarning: Calling process.umask() with no arguments is prone to …Run Code Online (Sandbox Code Playgroud)