Is there a way to force node / npm to use globally installed modules if both global and local versions exist?

As I understand it, if the NPM module is installed both globally and locally, then the local version will be used.

Is there a way to force the use of the global version if they exist?

+3
node.js npm


source to share


No one has answered this question yet

Check out similar questions:

1988
Find the version of the installed npm package
1835
How do I update each dependency in package.json to the latest version?
1544
How can I upgrade NodeJS and NPM to the next versions?
1177
How to completely uninstall Node.js and reinstall from the beginning (Mac OS X)
867
How to remove npm modules in js node?
784
install the previous version of the package
511
How to prevent the installation of the NPM modules "devDependencies" for Node.js (package.json)?
330
"message could not be retrieved from registry" when trying to install any module
322
Command to remove all npm modules globally?
228
Installing a local module using npm?



All Articles
Loading...
X
Show
Funny
Dev
Pics