npm install einen Fehler verursacht, wie npm ERR! tar.entpacken entpacken Fehler auf Debian
Installation von Grunt als in der Bootstrap-Dokumentation gezeigt, die ich zuerst installiert grunt-cli
weltweit mit npm install -g grunt-cli
und jetzt versuche ich, zu führen npm install
, aber nur immer Fehler:
root@devvm:/var/www/axit/portfolio/public/bower_components/bootstrap# npm install
npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/brace-expansion/1.1.0/package.tgz
npm ERR! tar.unpack untar error /root/.npm/delayed-stream/0.0.5/package.tgz
npm WARN optional dep failed, continuing form-data@0.1.4
npm ERR! tar.unpack untar error /root/.npm/is-property/1.0.2/package.tgz
npm WARN optional dep failed, continuing request@2.54.0
npm ERR! Linux 3.2.0-4-amd64
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.35
npm ERR! npm v2.7.4
npm ERR! path /var/www/axit/portfolio/public/bower_components/bootstrap/node_modules/grunt-saucelabs/node_modules/sauce-tunnel/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! Error: EPERM, open '/var/www/axit/portfolio/public/bower_components/bootstrap/node_modules/grunt-saucelabs/node_modules/sauce-tunnel/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js'
npm ERR! { [Error: EPERM, open '/var/www/axit/portfolio/public/bower_components/bootstrap/node_modules/grunt-saucelabs/node_modules/sauce-tunnel/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js']
npm ERR! errno: 50,
npm ERR! code: 'EPERM',
npm ERR! path: '/var/www/axit/portfolio/public/bower_components/bootstrap/node_modules/grunt-saucelabs/node_modules/sauce-tunnel/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Linux 3.2.0-4-amd64
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.35
npm ERR! npm v2.7.4
npm ERR! path npm-debug.log.ba707f2a7a688e388708bbe88e2dd4ed
npm ERR! code ETXTBSY
npm ERR! errno 62
npm ERR! ETXTBSY, rename 'npm-debug.log.ba707f2a7a688e388708bbe88e2dd4ed'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/axit/portfolio/public/bower_components/bootstrap/npm-debug.log
Habe ich nur kopiert das Projekt in einem nicht freigegebenen Ordner und begann npm install
wieder. Und es hat funktioniert. So scheint es zu sein, einen freigegebenen Ordner Problem. Aber was genau? Symlinks aktiviert für diesen freigegebenen Ordner ein, und ich startete die VM als admin (es geholfen, wenn ich hatte ähnliche Probleme bei der Installation von Bower).
Was verursacht diesen Fehler und wie dieses problem zu lösen?
Umgebung: VirtualBox mit Debian-Gast-system und Windows-7-host-system.
BEARBEITEN
Jetzt (nach ich glaube ich habe erfolgreich ausgeführt npm install
in einem nicht freigegebenen Ordner) ich bin geting unterschiedliche Fehler:
Wenn ich starten Sie die VM in der üblichen Weise:
root@devvm:/var/www/axit/portfolio/public/bower_components/bootstrap# npm install
npm ERR! tar.unpack untar error /root/.npm/delayed-stream/0.0.5/package.tgz
npm WARN optional dep failed, continuing form-data@0.1.4
npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/brace-expansion/1.1.0/package.tgz
npm ERR! Linux 3.2.0-4-amd64
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.35
npm ERR! npm v2.7.4
npm ERR! path ../semver/bin/semver
npm ERR! code UNKNOWN
npm ERR! errno -1
npm ERR! UNKNOWN, symlink '../semver/bin/semver'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Linux 3.2.0-4-amd64
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.35
npm ERR! npm v2.7.4
npm ERR! path npm-debug.log.428531818e2d916d5ae79bdf94dd73b3
npm ERR! code ETXTBSY
npm ERR! errno 62
npm ERR! ETXTBSY, rename 'npm-debug.log.428531818e2d916d5ae79bdf94dd73b3'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/axit/portfolio/public/bower_components/bootstrap/npm-debug.log
Wenn ich starte die VM als Administrator
:
root@devvm:/var/www/axit/portfolio/public/bower_components/bootstrap# npm install
npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/wrappy/1.0.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/delayed-stream/0.0.5/package.tgz
npm ERR! tar.unpack untar error /root/.npm/brace-expansion/1.1.0/package.tgz
npm WARN optional dep failed, continuing form-data@0.1.4
npm ERR! Linux 3.2.0-4-amd64
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.35
npm ERR! npm v2.7.4
npm ERR! path /var/www/axit/portfolio/public/bower_components/bootstrap/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/node_modules/fs-extra/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy
npm ERR! code UNKNOWN
npm ERR! errno -1
npm ERR! UNKNOWN, mkdir '/var/www/axit/portfolio/public/bower_components/bootstrap/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/node_modules/fs-extra/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Linux 3.2.0-4-amd64
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.35
npm ERR! npm v2.7.4
npm ERR! path npm-debug.log.0bb66467f3aae813a34e03a797f8da19
npm ERR! code ETXTBSY
npm ERR! errno 62
npm ERR! ETXTBSY, rename 'npm-debug.log.0bb66467f3aae813a34e03a797f8da19'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/axit/portfolio/public/bower_components/bootstrap/npm-debug.log
- Ich habe nicht versucht, Sie zu replizieren, die Ihr Problem noch nicht, aber zuerst möchte ich Sie bitten, eine Frage: Haben Sie versucht, führen Sie den Befehl mit
sudo
? Da diese Linienpm ERR! Please try running this command again as root/Administrator.
zu suggerieren scheint, dass. So etwas wiesudo npm install
vielleicht ist die Lösung. - Ich bin
root
auf dem Debian-Gast-system. Und ich habe auch begonnen, die VM alsAdministrator
auf dem host. - Nicht sicher, aber in die Antwort und die Kommentare unten, die Sie vorschlagen, zu verwenden, eine zusätzliche option
--no-bin-link
. Sie sagte, Sie habe problem bei der Installation von Bower, vielleicht auch nur ermöglicht, das die symlinks nicht genug. - Nur es ausprobiert. Nein, es hat nicht funktioniert.
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ok, ich sehe die Lösung
Dann
Habe ich diese auf MacOS
Versuchen Sie
sudo npm cache clean
. Aber Es sieht so aus das problem ist der Pfad zu lang für windows (260byte limit), so dass Sie können nicht geben Sie das Verzeichnis.Versuchte ich mit fenestrate, aber es hat nicht funktioniert für mich. Sie können auch prüfen wollen dieser Eintrag.
Stellen Sie sicher, dass Ihre Festplatte nicht voll ist. Das war mein Fall.
Ich hatte eine ähnliche Fehlermeldung und der folgende nicht sofort das Problem beheben:
Es stellt sich heraus, ich hatte Speicherplatz auf meiner virtuellen Maschine. Nach dem zuweisen der etwas mehr Platz und läuft über Befehle funktioniert alles wie erwartet.
Ich bin vor dem gleichen problem und ich habe versucht, alle Möglichkeiten, die hier vorgeschlagen werden, ohne succcess. Endlich, ich habe irgendwo gelesen, dass, sollte ich superuser-Berechtigungen, so habe ich
und es scheint das problem gelöst haben.
Mir npm cache clean hat nicht funktioniert.
Jedoch entfernen das problematische Verzeichnis (npm entfernen) und dann einfach eine Neuinstallation des Pakets hat!