package.json限制node版本
在package.json文件中添加
"engines": {
"node": "^16.20.0",
"npm": "^8.19.4"
},
在.npmrc文件中添加
# .npmrc
engine-strict = true
在package.json文件中添加
"engines": {
"node": "^16.20.0",
"npm": "^8.19.4"
},
在.npmrc文件中添加
# .npmrc
engine-strict = true