2016-12-02 5 views
0

Ich bin in Benutzer/local/blackmanr und ich habe bereits NPM, Node und ionic installiert. Aus irgendeinem Grund bekomme ich bei der Installation von Cordova im Terminal einen Fehler (siehe unten).In welches Verzeichnis soll CORDOVA installiert werden?

SANDMCRDMACP002-90:~ blackmanr$ npm install -g cordova 
 
npm WARN deprecated [email protected]: use uuid module instead 
 
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/cordova 
 
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/cordova/node_modules 
 
/usr/local/lib 
 
└─┬ [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] 
 
    │ │ └─┬ [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] 
 
    │ │ └── [email protected] 
 
    │ ├── [email protected] 
 
    │ ├── [email protected] 
 
    │ ├── [email protected] 
 
    │ ├── [email protected] 
 
    │ ├── [email protected] 
 
    │ ├── [email protected] 
 
    │ ├─┬ [email protected] 
 
    │ │ ├─┬ [email protected] 
 
    │ │ │ └── [email protected] 
 
    │ │ └── promzard[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] 
 
    │ │  ├── [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] 
 
    │ │ │ │ ├── [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] 
 
    │ ├── [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] 
 
    │ │ ├── [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] 
 
    │ │ ├── [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] 
 
    │ │ │ │ ├─┬ [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] 
 
    │ │ │ └─┬ [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] 
 
    │ │ ├── [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] 
 
    │ ├── [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] 
 
     └─┬ [email protected] 
 
      └── [email protected] 
 

 
npm ERR! Darwin 15.3.0 
 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" 
 
npm ERR! node v7.2.0 
 
npm ERR! npm v3.10.9 
 
npm ERR! path /usr/local/lib/node_modules/cordova 
 
npm ERR! code EACCES 
 
npm ERR! errno -13 
 
npm ERR! syscall access 
 

 
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/cordova' 
 
npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/cordova' 
 
npm ERR! errno: -13, 
 
npm ERR! code: 'EACCES', 
 
npm ERR! syscall: 'access', 
 
npm ERR! path: '/usr/local/lib/node_modules/cordova' } 
 
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/blackmanr/npm-debug.log 
 
SANDMCRDMACP002-90:~ blackmanr$ sudo npm install -g cordova 
 
Password: 
 
npm WARN deprecated [email protected]: use uuid module instead 
 
/usr/local/lib 
 
└── (empty) 
 

 
npm ERR! Darwin 15.3.0 
 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" 
 
npm ERR! node v7.2.0 
 
npm ERR! npm v3.10.9 
 
npm ERR! path /usr/local/lib/node_modules/.staging/abbrev-ef9cc920 
 
npm ERR! code ENOENT 
 
npm ERR! errno -2 
 
npm ERR! syscall rename 
 

 
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/abbrev-ef9cc920' -> '/usr/local/lib/node_modules/cordova/node_modules/npm/node_modules/abbrev' 
 
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/abbrev-ef9cc920' -> '/usr/local/lib/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!  /Users/blackmanr/npm-debug.log 
 
npm ERR! code 1

Alle Ideen, was das sein könnte?

Antwort

0

Sie sollten NVM verwenden, um Ihre Knoteninstallation zu verwalten. Einfache Upgrades auf den Knoten & NPM ungeachtet, installiert nvm auch Module in Ihrem Benutzerverzeichnis, für das Sie Schreibrechte haben. Wenn Sie keinen Knotenversionsmanager verwenden möchten, sollten Sie die npm-Dokumentation unter https://docs.npmjs.com/getting-started/fixing-npm-permissions überprüfen. Ich würde Option 1 vermeiden, wenn nichts anderes funktioniert.

+0

Vielen Dank! Ich habe versucht den NVM, nicht wirklich sicher, wie es mir hilft? Und ich habe mir diesen Link angesehen, aber kein Glück. –

+0

NVM wird verwendet, um node & npm local in Ihrem Benutzerprofil zu installieren. Stellen Sie sicher, dass Sie alle Installationsschritte befolgen (einschließlich des Hinzufügens von NVM zu Ihrem Bashprofil), und installieren Sie Cordova anschließend erneut. Wenn Sie auf Fehler stoßen, fügen Sie bitte jeden Befehl ein, den Sie ausprobiert haben. –

0

Versuchen Sie, die mit erhöhten Berechtigungen von einem Terminal-Befehl (vorausgesetzt, Sie sind unter Windows):

  1. Go zu starten und für CMD suchen.
  2. Klicken Sie mit der rechten Maustaste und wählen Sie Als Administrator ausführen aus.
  3. Typ: npm -g cordova

installieren Wenn das fehlschlägt, versuchen Sie diese zuerst: npm Cache sauber

EDIT: wenn auf Linux, könnten Sie einen Blick auf diese Seite nehmen wollen: npm throws error without sudo

Verwandte Themen