node.js - globally installed npm-packages not working -


local npm-packages work predicted, seems impossible me globally-installed packages running. doesn't throw error, it's not doing ( express, coffee, etc.. )

this not bothering me until wanted use coffee-script.

things allready checked ( i'm on xubuntu 12.04 ):

  • npm lists it
  • its installed in /usr/local/bin
  • ( updated | uninstalled | reinstalled ) npm via ( npm | apt-get )
  • uninstalled nodejs , did fresh git-rebuild /opt/bin/node

    => same thing..

anyone knows solution?

is node_path variable set on environment

//show if set echo $node_path  //set node_path node_path="/usr/local/lib/node_modules" 

the node_path should contain location of directories modules installed. can have multiple directories (colon seperated).


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -