npm install forever出错

出现node版本过低,无法安装npm

apt-get install nodejs-dev node-gyp libssl1.0-dev -y

然后安装npm

apt-get install npm -y

在使用npm安装forever时候报错:

npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

ubuntu下没有forever命令,就没有安装上,清理cache后

sudo npm cache clean

继续运行

sudo npm install forever -g

终于安装上了,虽然还是出现一些警告

你可能感兴趣的:(其它)