2017-08-26 18 views
0

Ich versuche, ionic 3 und Cordova zum ersten Mal in meinem Desktop zu installieren. Ich verwende Windows 7.Fehler: EPERM: Betrieb nicht erlaubt Installation von ionic 3 und cordova

npm install -g ionic cordova 

zeigt mir diesen Fehler:

npm WARN deprecated [email protected]: Use uuid module instead 
C:\Users\amir\AppData\Roaming\npm\cordova -> C:\Users\amir\AppData\Ro 
C:\Users\amir\AppData\Roaming\npm\ionic -> C:\Users\amir\AppData\Roam 
npm ERR! path C:\Users\amir\AppData\Roaming\npm\node_modules\ionic\no 
.json 
npm ERR! code EPERM 
npm ERR! errno -4048 
npm ERR! syscall unlink 
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\amir 
s\fsevents\node_modules\ansi-regex\package.json' 
npm ERR!  at Error (native) 
npm ERR! { Error: EPERM: operation not permitted, unlink 'C:\Users\a 
ules\fsevents\node_modules\ansi-regex\package.json' 
npm ERR!  at Error (native) 
npm ERR! stack: 'Error: EPERM: operation not permitted, unlink \'C: 
\ionic\\node_modules\\fsevents\\node_modules\\ansi-regex\\package.jso 
npm ERR! errno: -4048, 
npm ERR! code: 'EPERM', 
npm ERR! syscall: 'unlink', 
npm ERR! path: 'C:\\Users\\amir\\AppData\\Roaming\\npm\\node_module 
i-regex\\package.json' } 
npm ERR! 
npm ERR! Please try running this command again as root/Administrator. 

Ich habe versucht, Windows Powershell im Administratormodus eintritt, aber das Problem ist nicht gelöst. Irgendeine Idee bitte?

Antwort

3

Ich löste das Problem.

Es geht nicht um Knoten-UUID.

Ich gehe nur zu appData/Roaming/npm und i gelöscht

node-module folder

und

npm cache

und dann funktionierte es

0

ich hatte das gleiche Problem, es behoben durch Herabstufung npm von 5.4.0 bis 5.3.0.

npm install [email protected] 
Verwandte Themen