简体   繁体   中英

Can not install Angular Cli

What I am trying to do is very simple and that is installing angular CLI, however I get the following issue

Failed to execute '/usr/local/Cellar/node/11.4.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/local/Cellar/node/11.4.0/lib/node_modules/@angular/cli/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node --module_name=fse --module_path=/usr/local/Cellar/node/11.4.0/lib/node_modules/@angular/cli/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64 --napi_version=3 --node_abi_napi=napi' (1

I ran the following command sudo npm install -g @angular/cli but I get the error shown in the Image

Seems to be an issue with node-gyp folder.

Delete your $HOME/.node-gyp directory and try again.

Refer Github issue for more details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM