![]() You can run npm list to see the installed non-global libraries for your current location. Non-global libraries are installed the node_modules sub folder in the folder you are currently in. Windows 7, 8 and 10 - %USERPROFILE%\AppData\Roaming\npm\node_modules Non-global libraries Windows XP - %USERPROFILE%\AppData\npm\node_modules If you set the NODE_PATH environment variable to this path, the modules can be found by node. On Unix systems they are normally placed in /usr/local/lib/node or /usr/local/lib/node_modules when installed globally. If you want to display only main packages not its sub-packages which installs along with it - you can use - npm list -depth=0 which will show all packages and for getting only globally installed packages, just add -g i.e. ![]() Use npm list -g | head -1 for truncated output showing just the path. All rights reserved.īut if I run command just as my regular user, Microsoft Windows You can run npm list -g to see which global libraries are installed and where they're located. So right now, when I open a "command" window as admin, i can run Microsoft Windows but I need to be able to run nvm as my regular non priv. The problem is that nvm only works when I run a command window as my admin user. Windows prompts me for it and after I supply the creds, the setup completes without any issues. WHen I try to run the installer, I have to use my admin account. I downloaded and ran the latest installer from this repo: But to install things / admin stuff, I have to provide an admin account. When I do all my programming it's with my regular user account. I need to install nvm for windows 10 and have it work for my admin profile and my non admin profile.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |