Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

lock global npm packages

Tags:

node.js

Is it possible to lock global packages to a specific version? For example if I do:

$ npm install -g [email protected]

if [email protected] exists, can I prevent npm from ever updating this specific package?

like image 744
David Weldon Avatar asked Oct 06 '22 00:10

David Weldon


1 Answers

The answer appears to be no. I opened this issue but it got closed. It's hard to imagine that I'm the only person with this use case though.

like image 149
David Weldon Avatar answered Oct 10 '22 04:10

David Weldon