Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Locking NPM version?

Tags:

node.js

npm

nvm

I am using .nvmrc file to lock in my Node version for my project. Is there a way to lock in my NPM version as well? I want to make sure that anyone that runs my project is on the same setup.

like image 720
jjoan Avatar asked Mar 14 '19 17:03

jjoan


1 Answers

Yes. You can use the engines property in your package.json to specify an exact NPM version (or version range) for running your project.

like image 200
pjivers Avatar answered Oct 20 '22 06:10

pjivers