![]() ![]() ![]() The default MSI installer puts Node and the NPM that comes with it in 'program files' and adds this to the system path, but it sets the user path for NPM to %appdata% (c:\users\appdata\roaming) since the user doesn't have sufficient priveleges to write to 'program files'. Re-start the command prompt and npm will now work.Įverything should be installed in %appdata% (C:\Users\\AppData\Roaming), not 'program files'. Manually go into the AppData directory and you will find that there is no npm directory inside Roaming. Now that the PATH variable is set correctly, you will still encounter errors. If the PATH variable is empty, change it to this: C:\Users\\AppData\Roaming\npm C:\Program Files\nodejs Control Panel -> System -> Advanced system settings -> Environment Variables.Install it anywhere you want, by default: C:\Program Files\nodejs.download the 64 bits version, 32 is for hipsters. ![]() It seems like new installers do not have this problem anymore, see this answer by Parag Meshram as my answer is likely obsolete now. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |