2017-02-06 2 views
4
npm install -g @angular/cli 

versucht in ubuntu 16.10 Winkel-cli zu installieren und I stellen die folgenden Fehler auf sass.NPM installieren -G Winkel-cli sh: 1: node: nicht gefunden

/home/user1/.npm-packages/bin/ng -> /home/user1/.npm-packages/lib/node_modules/@angular/cli/bin/ng 

> [email protected] install /home/user1/.npm-packages/lib/node_modules/@angular/cli/node_modules/node-sass 
> node scripts/install.js 

sh: 1: node: not found 
/home/user1/.npm-packages/lib 
└── (empty) 

npm WARN optional Skipping failed optional dependency /@angular/cli/chokidar/fsevents: 
npm WARN notsup Not compatible with your operating system or architecture: [email protected] 
npm WARN @angular/[email protected] requires a peer of [email protected]^5.0.1 but none was installed. 
npm ERR! Linux 4.8.0-22-generic 
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "@angular/cli" 
npm ERR! node v4.2.6 
npm ERR! npm v3.5.2 
npm ERR! file sh 
npm ERR! code ELIFECYCLE 
npm ERR! errno ENOENT 
npm ERR! syscall spawn 

npm ERR! [email protected] install: `node scripts/install.js` 
npm ERR! spawn ENOENT 
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node scripts/install.js'. 

Hinweis: ich auf eine frische Maschine bin, NPM/Winkel zum ersten Mal eingerichtet.

Antwort

10

Schaltet sass noch node out erwartet in /usr/bin/

einen Link erstellen, durch die die Ausgabe

sudo ln -s /usr/bin/nodejs /usr/bin/node 
aufgelöst folgendes tun
Verwandte Themen