小编gor*_*ova的帖子

无法在 Ubuntu 20 上安装“node-sass”

我使用 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)

sass node.js npm webpack ubuntu-20.04

6
推荐指数
1
解决办法
7369
查看次数

标签 统计

node.js ×1

npm ×1

sass ×1

ubuntu-20.04 ×1

webpack ×1