How to specify node and npm version for the current project, using .npmrc and .nvmrc

Fredric Cliver
2 min readFeb 26
Photo by Gabriel Heinzer on Unsplash

You need two files to specify and restrict to use of the proper version of npm and node.

.npmrc

engine-strict=true

package.json

"engines": {
"node": ">= 8.9.4 < 15.0",
"npm": ">= 5.6.0"
}
Fredric Cliver

Majored in Physics, self-taught and worked in the IT industry as a Dev/Design/Planning for 11 years. And I had run my Startup for 3 years. I fancy a ☔️ 🇬🇧