Please provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
OSX El Capitan
ng --version
. If there's nothing outputted, please runnode --version
and paste the result here:Cannot install ng, so I cannot give you the version.
$ node -v
v4.5.0
$ npm -v
3.10.8
Starting from scratch. Clean install of node/npm. followed by a npm install --upgrade
Now trying "sudo npm install -g angular-cli"
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "angular-cli"
npm ERR! node v4.5.0
npm ERR! npm v3.10.8
npm ERR! uid must be an unsigned int
Thanks! We'll be in touch soon.
It's an npm problem. If you download the current LTS version of node, it gives you the above versions.
npm v3.10.8 has this bug, https://github.com/npm/npm/issues/13946
So my problem was this:
My workaround was this:
Will leave this open while I see whether this is a complete fix, but thought I'd post this now, in case it helps someone else.
I needed to uninstall and then reinstall angular-cli, but otherwise, this is now working for me.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
It's an npm problem. If you download the current LTS version of node, it gives you the above versions.
npm v3.10.8 has this bug, https://github.com/npm/npm/issues/13946
So my problem was this:
My workaround was this:
-$ sudo npm install -g --upgrade [email protected], to get the previous version
Will leave this open while I see whether this is a complete fix, but thought I'd post this now, in case it helps someone else.