1
votes

I am trying to install node module "forever" globally on windows machine. So tried installing it with "-g" switch

C:\npm install -g forever

I specifically interested in file "forever.cmd". However this file gets install into the folder

C:\Users\myusername\AppData\Roaming\npm

Well this is not truly global folder. Other users of the same machine cannot access this. Is there any other location forever module gets installed?

1
I believe that global doesn't mean system global, but user global in the case of NPM. Edit: I have been informed that I was wrong. Maybe check another users AppData to see if it's installed on every users files? - Sterling Archer
Have you tried running the command prompt as administrator? (Right-click -> "Run as administrator") - rgvassar

1 Answers

0
votes

I don't think there's a perfect solution for this issue. You could re-install NodeJS, which includes NPM, but install it to a global folder like your system folder (installation instructions here). However, this will require administrator access which will make it potentially unsafe and a pain to use.

I would suggest just making a shortcut, alias, or adding the path to the environment variables for the user in question. That way when you do "forever start" in one user account you can do "forever list" in a different user account.

Good luck.