Closed ghost closed 10 years ago
Quote: 1) sudo npm install -g grunt-cli yo bower 2) sudo npm install -g generator-cg-angular
I don't think you are supposed to sudo install npm modules like that. It will likely make it read/write only from admin level and is probably why everything isn't working. retry without sudo.
@deshartman Is this still an issue? please close if it isn't
I've installed the modules with sudo on an Ubuntu distribution and had no problems. npm install -g wants to install to the global location. If you try it without sudo, then you must already have permissions to write to the global location, which you are unlikely to have as an ordinary user.
This is a problem with installing this on windows as well.
Steps:
Retried the whole thing again, same error.
yo cd-angular
?? Is it a typo?
@tapas4java +1
Sorry, have not had time to look at this. Will close for now
PS. Yes, that is a typo
Yes its a typo. Its yo cg-angular (coz i typed it in)
But the problem is that even though its installed globally, it kept saying cg-angular does not exist. If this is solved, would like to know if its working for people on windows.
Can you check below location weather generator-cg-angular
folder is present?
C:\Users\[user]\AppData\Roaming\npm\node_modules
I'm following your example and get errors from the start. Was wondering if you could help me out with these? I have installed yeoman and used it for the regular angular generators without issues.
Here are my steps:
1) sudo npm install -g grunt-cli yo bower 2) sudo npm install -g generator-cg-angular 3) mkdir MyNewAwesomeApp 4) cd MyNewAwesomeApp 5) yo cg-angular