npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: ‘electron-packager@17.1.1’,
npm WARN EBADENGINE required: { node: ‘>= 14.17.5’ },
npm WARN EBADENGINE current: { node: ‘v12.22.9’, npm: ‘8.5.1’ }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: ‘mdui@1.0.2’,
npm WARN EBADENGINE required: { node: ‘>=14’ },
npm WARN EBADENGINE current: { node: ‘v12.22.9’, npm: ‘8.5.1’ }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: ‘mdui.jq@2.0.1’,
npm WARN EBADENGINE required: { node: ‘>=14’ },
npm WARN EBADENGINE current: { node: ‘v12.22.9’, npm: ‘8.5.1’ }
npm WARN EBADENGINE }
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm WARN deprecated electron-rebuild@3.2.9: Please use @electron/rebuild moving forward. There is no API change, just a package name change
npm -v
8.5.1
node -v
v12.22.9
发现最新版本的npm9.6.3对应node19.9.0版本
- 将npm更新为:9.6.3版本
- 将node更新为:19.9.0版本
# cd node-v19.9.0-linux-x64 # ./bin/node -v v19.9.0 # ./bin/npm -v 9.6.3
# cp -rf node-v19.9.0-linux-x64 /opt # ln -s /opt/nodejs/bin/npm /usr/bin/ # ln -s /opt/nodejs/bin/node /usr/bin/ # node -v v19.9.0 # npm -v 9.6.3
下载源码:https://nodejs.org/en
//1.速度慢 # git clone https://github.com/nodejs/node.git Or //2.速度快,推荐! # wget https://nodejs.org/dist/v19.9.0/node-v19.9.0-linux-x64.tar.xz # sudo ./configure $ sudo make $ sudo make install # node -v # npm -v