试图安装npm install -g pngquant-bin

时间:2018-07-17 16:30:15

标签: node.js npm ubuntu-18.04

我试图在ubuntu 18.04中运行它

npm install -g pngquant-bin

但是出现以下错误

npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
/root/.nvm/versions/node/v10.6.0/bin/pngquant -> /root/.nvm/versions/node/v10.6.0/lib/node_modules/pngquant-bin/cli.js

> pngquant-bin@4.0.0 postinstall /root/.nvm/versions/node/v10.6.0/lib/node_modules/pngquant-bin
> node lib/install.js

sh: 1: node: Permission denied

npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! pngquant-bin@4.0.0 postinstall: `node lib/install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the pngquant-bin@4.0.0 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!     /root/.npm/_logs/2018-07-17T16_23_55_126Z-debug.log

该怎么办?

0 个答案:

没有答案