i am Roger Li

Specific Node version for project

// create .npmrc file on root of the project with following content.
engine-strict=true 

// add following field in package.json
"engines": {
    "node": ">=12"
},

// it will show error if "npm install" with npm -v not match.

發佈回覆

你的電郵地址並不會被公開。 必要欄位標記為 *