I want to install Angular on the latest macOS High Sierra (Version 10.13.15).
The Error output is as follows:
[email protected] install /usr/local/lib/node_modules/@angular/cli/node_modules/fsevents node install @angular/[email protected] postinstall /usr/local/lib/node_modules/@angular/cli node ./bin/ng-update-message.js sh: node: command not found npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/@angular/cli/node_modules/fsevents): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node install npm WARN optional SKIPPING OPTIONAL DEPENDENCY: spawn ENOENT npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! @angular/[email protected] postinstall: node ./bin/ng-update-message.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the @angular/[email protected] postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Troubleshoots, which I've done: - Restart computer - clear npm cache - Delete and reinstall node and npm - Check environment vars
So I have every time the same issue.
My node and npm versions are:
- node -v --> v8.11.3
- npm -v --> 5.6.0
FYI: If I want to install Angular by bower, then I have a warning that the current os version is not supported yet. This wouldn't be a better solution...
Therefore, I downloaded the Angular-package (https://github.com/angular/angular-cli#angular-cli) from GitHub, but in there I can't find any script named "postinstall" unfortunately.
Thank you for some tipps!
If you with a full log, so I would post it (but isn't more helpful).
npm install
notnode install
. You should really be using theangular-cli
. To install that you can runnpm install -g angular-cli
– nipuna777