node.js - Making Global NPM packages available to all users on windows 2012 server -
i trying install continues integration server. server pull data git , try build application. since using windows 2012 server, multiple users can trigger build. purpose, want ensure node packages install admin available users.
how can i:
- install node packages globally available users.
- i want use locally hosted node registry. don't want use node registry.
- after installing packages, how can validate if users can access packages?
had same issue. needed ci build agent run global package on cli. saw this post in new feature request system-wide npm -g
windows.
in short:
- open administrator level command prompt
- note current global prefix:
npm prefix -g
- set global prefix ci user:
npm config set prefix <c:\users\ci_user\appdata\roaming\npm>
- install needed packages:
npm -g pkg
- restore prefix previous value.
Comments
Post a Comment