2016-10-31 3 views
0

ich den folgenden Fehler ENOENT bekommen, EPERM während der Installation von ionischen unter Windows 10 folgenden Anweisungen in http://ionicframework.com/docs/v2/getting-started/installation/Ionic 2 Fehler bei der Installation - ENOENT, EPERM in Installation auf Windows 10

npm Config

C:\WINDOWS\system32>npm config list 
; cli configs 
user-agent = "npm/3.10.8 node/v6.9.1 win32 x64" 

; builtin config undefined 
prefix = "C:\\Users\\developer\\AppData\\Roaming\\npm" 

; node bin location = C:\Program Files\nodejs\node.exe 
; cwd = C:\WINDOWS\system32 
; HOME = C:\Users\developer 
; "npm config ls -l" to show all defaults. 

Befehle

PS C:\WINDOWS\system32> node -v 
v6.9.1 
PS C:\WINDOWS\system32> npm -v 
3.10.8 
PS C:\WINDOWS\system32> 

installieren ionische pro Anweisungen

PS C:\WINDOWS\system32> npm install -g ionic cordova 


    +-- [email protected] 
    | `-- [email protected] 
    | `-- [email protected] 
    |  `-- [email protected] 
    `-- [email protected] 
    +-- [email protected] 
    | +-- [email protected] 
    | | `-- [email protected] 
    | +-- [email protected] 
    | `-- [email protected] 
    | `-- [email protected] 
    |  +-- [email protected] 
    |  +-- [email protected] 
    |  `-- [email protected] 
    +-- [email protected] 
    | `-- [email protected] 
    `-- [email protected] 

npm ERR! Windows_NT 10.0.10586 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\developer\\AppData 
\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic" "cord 
ova" 
npm ERR! node v6.9.1 
npm ERR! npm v3.10.8 
npm ERR! path C:\Users\developer\AppData\Roaming\npm\node_modules\.staging\abbrev- 
2a0e0d71 
npm ERR! code ENOENT 
npm ERR! errno -4058 
npm ERR! syscall rename 

npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\developer\AppD 
ata\Roaming\npm\node_modules\.staging\abbrev-2a0e0d71' -> 'C:\Users\developer\AppD 
ata\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev' 
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\developer\AppD 
ata\Roaming\npm\node_modules\.staging\abbrev-2a0e0d71' -> 'C:\Users\developer\AppD 
ata\Roaming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev' 
npm ERR! enoent This is most likely not a problem with npm itself 
npm ERR! enoent and is related to npm not being able to find a file. 
npm ERR! enoent 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\WINDOWS\system32\npm-debug.log 
PS C:\WINDOWS\system32> 

Was ist der richtige Weg, um dies zu?

ähnliches Problem auf Ubuntu 12,04 here

Update: - Ich habe versucht, dies als Admin ausgeführt wird, aber das Endergebnis ist das gleiche mit leicht unterschiedlichen Fehlermeldungen.

C:\WINDOWS\system32> npm install -g ionic cordova 

    |  `-- [email protected] 
    +-- [email protected] 
    | `-- [email protected] 
    | `-- [email protected] 
    +-- [email protected] 
    `-- [email protected] 

npm ERR! Windows_NT 10.0.10586 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic" "cordova" 
npm ERR! node v6.9.1 
npm ERR! npm v3.10.8 
npm ERR! path C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\.cordova-lib.DELETE\node_modules\cordova-js 
npm ERR! code EPERM 
npm ERR! errno -4048 
npm ERR! syscall rename 

npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\.cordova-lib.DELETE\node_modules\cordova-js' -> 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cordova-lib\node_modules\cordova-js' 
npm ERR!  at C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:64:7 
npm ERR!  at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:35 
npm ERR!  at Array.forEach (native) 
npm ERR!  at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:11 
npm ERR!  at Array.forEach (native) 
npm ERR!  at asyncMap (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:51:8) 
npm ERR!  at moveModules (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:61:5) 
npm ERR!  at C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:56:70 
npm ERR!  at C:\Program Files\nodejs\node_modules\npm\node_modules\mkdirp\index.js:48:26 
npm ERR!  at FSReqWrap.oncomplete (fs.js:123:15) 
npm ERR! 
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\.cordova-lib.DELETE\node_modules\cordova-js' -> 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cordova-lib\node_modules\cordova-js' 
npm ERR!  at Error (native) 
npm ERR! { Error: EPERM: operation not permitted, rename 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\.cordova-lib.DELETE\node_modules\cordova-js' -> 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cordova-lib\node_modules\cordova-js' 
npm ERR!  at C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:64:7 
npm ERR!  at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:35 
npm ERR!  at Array.forEach (native) 
npm ERR!  at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:11 
npm ERR!  at Array.forEach (native) 
npm ERR!  at asyncMap (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:51:8) 
npm ERR!  at moveModules (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:61:5) 
npm ERR!  at C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:56:70 
npm ERR!  at C:\Program Files\nodejs\node_modules\npm\node_modules\mkdirp\index.js:48:26 
npm ERR!  at FSReqWrap.oncomplete (fs.js:123:15) 
npm ERR! 
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\.cordova-lib.DELETE\node_modules\cordova-js' -> 'C:\Users\developer\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cordova-lib\node_modules\cordova-js' 
npm ERR!  at Error (native) parent: 'ionic-app-lib' } 
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!  C:\WINDOWS\system32\npm-debug.log 

C:\WINDOWS\system32> 
+0

bereits versucht 'umbenennen‚C: \ Benutzer \ Entwickler \ APPD ata \ Roaming \ npm \ node_modules \ .staging \ abbre-2a0e0d71 '->' C: \ Benutzer \ developer \ AppD ata \ Roaming \ npm \ node_module \ cordova \ node_module \ npm \ node_modules \ abkuerze ''? – Ivaro18

+0

@ Ivaro18 - Ich sehe diesen Quellordner nicht in C: \ Benutzer \ Entwickler \ AppD ata \ Roaming \ npm \ node_modules \ – user3206440

+0

installieren Sie dann Cordova, 'npm installieren -g Cordova' – Ivaro18

Antwort

0

Blick durch verschiedene Vorschläge in anderen SO Beiträge und Ressourcen.

Häufige Vorschläge

  1. C:\Users\developer\AppData\Roaming\npm Ordner löschen und die npm manuell erstellen und ausführen, wie Administrator

  2. wieder installieren npm über npm install -g npm und laufen als Administrator

  3. einen anderen Ordner für npm erstellen

Was wirklich funktioniert hat, ist # 3 - d. H. Den npm-Ordner von der standardmäßigen npm-Installer-Auswahl in ein anderes Verzeichnis zu ändern, das vom Benutzer erstellt wurde.

Schritte

  1. prüfen Strom npm Pfad

    C:\>npm config get prefix

    C:\Users\developer\AppData\Roaming\npm
    C:\>

  2. Set npm und NPM-Cache-Ordner zu einem gewissen Benutzer erstellen d Verzeichnis

    C:\>npm config set prefix C:\dev\npm_repo\npm --global

    C:\>npm config set cache C:\dev\npm_repo\npm-cache --global

  3. Run npm install -g <some_module> zu testen, ob das Modul im Verzeichnis C:\dev\npm_repo\npm

  4. Run npm install -g ionic cordova von Eingabeaufforderung als Administrator

  5. Pfad hinzufügen installiert wird C:\dev\npm_repo\npm zu PATH Umgebungsvariable

Hinweis: -

In Schritt 3 lief ich npm install -g jshint als normaler Benutzer und bekam jshint installiert in Ordnung. Das Ausführen von npm install -g ionic cordova als normaler Benutzer gab jedoch immer noch den folgenden Fehler. Daher wird in Schritt 4 für ionische wurde die Installation als Administrator lief

npm ERR! Windows_NT 10.0.10586 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic" "cordova" 
npm ERR! node v6.9.1 
npm ERR! npm v3.10.8 
npm ERR! path C:\dev\npm_repo\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cordova-lib\node_modules\npm\node_modules\node-gyp 
npm ERR! code EPERM 
npm ERR! errno -4048 
npm ERR! syscall rename 

npm ERR! Error: EPERM: operation not permitted, rename 'C:\dev\npm_repo\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cordova-lib\node_modules\npm\node_modules\node-gyp' -> 'C:\dev\npm_repo\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cordova-lib\node_modules\npm\node_modules\.node-gyp.DELETE' 
npm ERR!  at moveAway (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:38:5) 
npm ERR!  at destStatted (C:\Program Files\nodejs\node_modules\npm\lib\install\action\finalize.js:27:7) 
npm ERR!  at FSReqWrap.oncomplete (fs.js:123:15) 

Das Endergebnis des Laufens npm install -g ionic cordova als Administrator

C:\WINDOWS\system32>npm install -g ionic cordova 
C:\dev\npm_repo\npm\cordova -> C:\dev\npm_repo\npm\node_modules\cordova\bin\cordova 
C:\dev\npm_repo\npm\ionic -> C:\dev\npm_repo\npm\node_modules\ionic\bin\ionic 
C:\dev\npm_repo\npm 
+-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| +-- [email protected] 
| `-- [email protected] 
`-- [email protected] 
    +-- @ionic/[email protected] 
    +-- [email protected] 
    +-- [email protected] 
    +-- [email protected] 
    +-- [email protected] 
    | `-- [email protected] 
    | `-- [email protected] 
    |  +-- [email protected] 
    |  `-- [email protected] 
    |  `-- read-pkg[email protected] 
    +-- [email protected] 
    +-- [email protected] 
    | +-- [email protected] 
    | | +-- [email protected] 
    | | | `-- [email protected] 
    | | | +-- [email protected] 

## snipped ## 

    +-- [email protected] 
    | `-- [email protected] 
    +-- [email protected] 
    | +-- [email protected] 
    | `-- [email protected] 
    +-- [email protected] 
    | +-- [email protected] 
    | +-- [email protected] 
    | +-- [email protected] 
    | `-- [email protected] 
    `-- [email protected] 


C:\WINDOWS\system32> 

C:\Windows\System32>ionic -v 
2.1.4 


C:\Windows\System32>cordova -v 
6.4.0 

C:\Windows\System32> 
Verwandte Themen