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:

  1. install node packages globally available users.
  2. i want use locally hosted node registry. don't want use node registry.
  3. 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:

  1. open administrator level command prompt
  2. note current global prefix: npm prefix -g
  3. set global prefix ci user: npm config set prefix <c:\users\ci_user\appdata\roaming\npm>
  4. install needed packages: npm -g pkg
  5. restore prefix previous value.

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -