Transmission Line Noise

Node js

Sun, Sep 25, 2011

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!