![]() ![]() Run the following command to see where npm will install global packages to verify it is correct. There was a bug in some versions of npm that kept this from working, so you may need to go in and fix that up by hand. When npm is used to install itself, it is supposed to copy this special builtin configuration into the new install. The Node installer installs, directly into the npm folder, a special piece of Windows-specific configuration that tells npm where to install global packages. ![]() To get around this, you can do one of the. on your PATH, it will always use the version of npm installed with node instead of the version of npm you installed using npm -g install npm. (See also the point below if you're running Windows 7 and don't have the directory %appdata%\npm.) A brief note on the built-in Windows configuration C:\Users\\AppData\Roaming\npm).
0 Comments
Leave a Reply. |