Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not isntall angular-cli or use ng command in MAC El-Capitan #2324

Closed
dipcse07 opened this issue Sep 24, 2016 · 7 comments
Closed

Can not isntall angular-cli or use ng command in MAC El-Capitan #2324

dipcse07 opened this issue Sep 24, 2016 · 7 comments

Comments

@dipcse07
Copy link

I am using osX El Capitan
my node version is 6.6.0

When i try to install angular-cli with sudo there is so many warnings and error and after the command completes the installation when is write ng --version it gives me these errors :(

MDSAZIDs-iMac:~ MYMAC$ ng --version

fs.js:640 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^

TypeError: path must be a string or Buffer

at TypeError (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.readFileSync (fs.js:508:33)
at Function.Version.fromProject (/usr/local/lib/node_modules/angular-cli/upgrade/version.js:87:31)
at Function.Version.isPreWebpack (/usr/local/lib/node_modules/angular-cli/upgrade/version.js:111:31)
at Function.Version.assertPostWebpackVersion (/usr/local/lib/node_modules/angular-cli/upgrade/version.js:97:18)
at /usr/local/lib/node_modules/angular-cli/bin/ng:25:15
at /usr/local/lib/node_modules/angular-cli/node_modules/resolve/lib/async.js:44:21
at ondir (/usr/local/lib/node_modules/angular-cli/node_modules/resolve/lib/async.js:187:31)
at /usr/local/lib/node_modules/angular-cli/node_modules/resolve/lib/async.js:153:39

@alielzei
Copy link

alielzei commented Sep 25, 2016

same issue please help

@erezBk
Copy link

erezBk commented Sep 25, 2016

same issue ...
mac - el-capitan
node - v4.5.0
npm - 3.10.8

@matt-erhart
Copy link

Same on windows 10, node v6.6.0, npm 3.9.6.

@vadost
Copy link

vadost commented Oct 1, 2016

Same on ubuntu 14.04, node v6.7.0, npm 3.10.3. Please help!

@filipesilva
Copy link
Contributor

filipesilva commented Oct 8, 2016

Dupe of #2135

@santlico
Copy link

for me i'm using mac and i fix it by using
sudo npm install -g angular-cli

i hope it's help u :)

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants