![]() Obviously, no matter how you install npm, we’ll do our best to make sure it works for you, but if you installed it some other way, you should try this recommended way first. Running this update will give you the most recent stable version of npm, also supported by npm Inc. (on Windows, you can drop the “sudo” but you should run it as administrator). Once you’ve installed Node.js, you can make sure you’ve got the very most recent version of npm using npm itself: ![]() This is the version that npm Inc and the Node.js project both support. It will give you a recent, working version of npm with all the paths in the expected places. ![]() The best way to install npm is to install node using the node.js installer. I’m going to fix that on the main site, but I thought I’d post quickly here. On windows, this is the exact location of the node.exe binary. prefix Configuration The prefix config defaults to the location where node is installed. > If you need both, then install it in both places, or use npm link. Updates from the npm team are now published on theĪ question we get asked often is “what’s the best, npm-recommended way of installing npm?” Weirdly, there are no good, recent sources for this. Install it globally if youre going to run it on the command line.
0 Comments
Leave a Reply. |