vue-npm加载项目依赖报 npm WARN deprecated
npm WARN npm npm does not support
npm WARN notsup Not compatible with your version of node
异常
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated rimraf@2.6.3: Rimraf versions prior to v4 are no longer supported
npm版本与node版本不匹配。在错误提示中也说了npm does not support Node.js v17.1.0,npm不支持17.1.0版本的node.js
解决
升级npm版本,或者降低noe.js版本。反正二者要相互匹配。
升级npm版本
npm install -g npm
-默认升级为最新版本-
问题
使用npm install -g npm安装失败
npm WARN notsup Unsupported engine for npm@10.8.1: wanted: {“node”:“^18.17.0 || >=20.5.0”} (current: {“node”:“14.8.0”,“npm”:“6.14.7”})
npm WARN notsup Not compatible with your version of node/npm: npm@10.8.1
查看npm与node的之间的关系:
Node.js — Node.js 版本
https://nodejs.org/zh-cn/about/previous-releases
下载node
安装完成后再次 查看当前npm版本
npm -v
10.8.1
node -v
v22.3.0
npm 版本对应的nodejs版本,都升级到最新版!
node版本太低问题得到解决,接下来聊聊bpmn-js部署