transmission line noise

home

Node js

25 Sep 2011

Tagged with Miscellaneous

Just a point when using npm you can do two types of install. A local for the appli­ca­tion you are writ­ing and a global for use at the com­mand line. The rule being … “Install locally for require().  Install glob­ally for CLI apps.”

How­ever and i com­plet­ley missed this and so wasted an hour or so but when installing for a local app you need to run the com­mand “npm install clus­ter” from the root of the app so it get put where the app can find it. Me i was assum­ing (dan­ger­ous) that you installed it to a cen­tral loca­tion and theat the $PATH pointed to it Doh!

comments powered by Disqus