Open ghost opened 8 years ago
set NODE_PATH=C:\Users\MyUser\node_modules This is the soluction
That worked. On my mac I just added this in my .bash_profile: export NODE_PATH="/usr/local/lib/node_modules"
The Comant Is success??
I have also this problem in windows -7
cordova create hello com.example.hello HelloWord Module.js:341
Cannot find Module ?
how to install the module and which module is need there?
I have to same problem in mac. I try to "export NODE_PATH="/usr/local/lib/node_modules" add in .bash_profile but the problem is not resolved.
Same problem under Ubuntu 14.04. This worked for me:
nano ~/.bashrc add the export line which was /usr/lib/node_modules in my case: export NODE_PATH="/usr/lib/node_modules"
Save the file, close the console and open a new console. Retry - should work now.
Thanks pals, setting up environment variable on Win7 helped! NODE_PATH=c:\Program Files\nodejs\node_modules\
Not sure this is the fault of the generator, but other generators do work. Whenever I am running
yo angular
I'm getting this:Version Data:
I tried running this and didn't have any luck: