2017-02-26 3 views
0

Ich habe erhebliche Probleme gehabt, Ionic auf meinem Mac zu installieren. Ich habe jeden im Internet veröffentlichten Vorschlag ohne Erfolg ausprobiert. Ich habe versucht, als root zu installieren, mit sudo, Sie nennen es.Ionic kann nicht auf macOS installiert werden 10.12.3

Verwendung von Homebrew Ich habe Knoten erfolgreich installiert: v6.10.0 und npm v4.1.2.

Issuing: "npm install -g cordova ionic" 
Results in: 
npm ERR! Darwin 16.4.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic" 
npm ERR! node v6.10.0 
npm ERR! npm v4.1.2 
npm ERR! path /Users/craigmaxey/.npm 
npm ERR! code EPERM 
npm ERR! errno -1 
npm ERR! syscall mkdir 

npm ERR! Error: EPERM: operation not permitted, mkdir '/Users/craigmaxey/.npm' 
npm ERR!  at Error (native) 
npm ERR! { Error: EPERM: operation not permitted, mkdir '/Users/craigmaxey/.npm' 
npm ERR!  at Error (native) 
npm ERR! errno: -1, 
npm ERR! code: 'EPERM', 
npm ERR! syscall: 'mkdir', 
npm ERR! path: '/Users/craigmaxey/.npm' } 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 
npm ERR! Darwin 16.4.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic" 
npm ERR! node v6.10.0 
npm ERR! npm v4.1.2 
npm ERR! path npm-debug.log.3262676290 
npm ERR! code EPERM 
npm ERR! errno -1 
npm ERR! syscall open 

npm ERR! Error: EPERM: operation not permitted, open 'npm-debug.log.3262676290' 
npm ERR!  at Error (native) 
npm ERR! { Error: EPERM: operation not permitted, open 'npm-debug.log.3262676290' 
npm ERR!  at Error (native) 
npm ERR! errno: -1, 
npm ERR! code: 'EPERM', 
npm ERR! syscall: 'open', 
npm ERR! path: 'npm-debug.log.3262676290' } 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/craigmaxey/npm-debug.log 
+0

Am schlimmsten ist es, den/usr/local/bin/npm-Ordner zu löschen und zu versuchen, –

Antwort

0

Dieses:

EPERM: operation not permitted, mkdir '/Users/craigmaxey/.npm' 

zeigt an, dass Sie Schreibrechte auf /Users/craigmaxey/.npm sind vermisst. Normalerweise können Sie dieses Problem beheben, indem Sie npm mit sudo:

sudo npm install -g cordova ionic 

Wenn dies nicht für Sie arbeiten (da Sie erwähnten Sie bereits sudo versucht), fügen Sie bitte die genaue Fehlermeldung Sie laufen diese erhalten genau Befehl.

+0

zu installieren. Wenn das stimmt, nicht sicher, wie Mac funktioniert, aber unter Linux ist es besser, nodeJS über NVM zu installieren Mac-Forschung, sudo nicht das npm – Marko

+0

Danke Frank und Jay für Ihr rechtzeitiges und hilfreiches Feedback! Der genaue Befehl ist in meinem ursprünglichen Post unklar, aber war: "npm install -g cordova ionic". Ich hatte auch versucht, den Befehl "sudo npm install -g cordova ionic" mehrmals während meiner Reise zu verwenden, ohne Erfolg. Ich habe auch viele Posts bezüglich der Vorschläge von "sudo" gelesen und nicht. An diesem Punkt muss ich die Kapitulation erklären. Ich glaube nicht, dass ich die Mühe machen kann, alle Probleme wirklich gut zu verstehen, um in einer Lösung sicher zu sein (chmod-Verzeichnisse usw.). Wiederholen ... DANKE für die Hilfe! –

Verwandte Themen