package.json限制node版本

在package.json文件中添加

"engines": {
    "node": "^16.20.0",
    "npm": "^8.19.4"
},

在.npmrc文件中添加

# .npmrc
engine-strict = true
posted @ 2023-06-11 00:28  Dz&Ying  阅读(576)  评论(0)    收藏  举报