NPM Command Not Found

I just updated node (through the nodejs.org package installer) and now npm won't work.

npm: command not found

Any idea what's going on?

Answers


I was hung up on this too. I installed node via nvm and could not run npm or node. I had to run nvm use 0.10.10

then which node and which npm worked again.

if you have installed npm via nvm you might want to add nvm use <version> to your .bashrc file so that you'll have npm always available on any shell you open. You just need to remember to update it whenever you update npm, or use stable.


It could be a permission issue as well. If so you need to run this: sudo chown -R $USER /usr/local

This worked for me


Need Your Help

Wrap Text in a UITableView in iOS

iphone objective-c ios uitableview

I want to wrap text of the cells in the UITableView. I am using the following code but the alignment of cells isnt coming proper now how to I change the Height of the cell dynamically? I noticed that

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.