Skip to content
Advertisement

“sh: line 1: Moved: command not found” installing npm with curl | sh

I attempted to install npm on mac OSX Yosemite with the command:

JavaScript

And I received the following message:

JavaScript

Any suggestions on how to resolve this issue?

Advertisement

Answer

You’re missing the curl -L option to follow redirects. However, you don’t need to use this installation method anymore, npm comes with node and if your distro happens to split node’s components up, npm is usually available as a separate package from one of your distro’s repositories.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement