2016-08-05 8 views
0

Ich bin mit Laravel 5.3-dev,
Ich versuche Laravel Elixir installieren, und ich folge in der Dokumentation, https://laravel.com/docs/master/elixirnpm ERR! cb ist keine Funktion

Als ich npm install --no-bin-links laufen,
etwas nicht in Ordnung ist,
und npm install ist das gleiche Ergebnis.
wie folgt:

$ npm install --no-bin-links 
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail o                         n node releases >= v7.0. Please update to [email protected]^4.0.0 as soon as possible                         . Use 'npm ls graceful-fs' to find it in the tree. 
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher                         to avoid a RegExp DoS issue 
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher                         to avoid a RegExp DoS issue 
npm WARN deprecated [email protected]: [email protected]<3.0.0 is no longer maintained. Upgrade                         to [email protected]^4.0.0. 
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail o                         n node releases >= v7.0. Please update to [email protected]^4.0.0 as soon as possible                         . Use 'npm ls graceful-fs' to find it in the tree. 
npm ERR! Windows_NT 10.0.14393 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js             " "install" "--no-bin-links" 
npm ERR! node v7.0.0-nightly2016080329e49fc286 
npm ERR! npm v3.10.5 

npm ERR! cb is not a function 
npm ERR! 
npm ERR! If you need help, you may report this error at: 
npm ERR!  <https://github.com/npm/npm/issues> 
npm ERR! Windows_NT 10.0.14393 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\dell\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js             " "install" "--no-bin-links" 
npm ERR! node v7.0.0-nightly2016080329e49fc286 
npm ERR! npm v3.10.5 


npm ERR! cb is not a function 
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!  D:\wnmp\www\laravel-5-3-demo\npm-debug.log 

Was soll ich tun?

+0

Mit Windows und Npm ist eine schlechte Idee. Es gibt eine Menge Probleme mit dem Dateisystem. Ich empfehle eine vagabundierende virtuelle Umgebung wie Homestead zu versuchen. – Yada

+0

Verwenden Sie absichtlich eine nächtliche Version des Knotens? – mscdex

Antwort

0

Gemäß der Fehlermeldung verwenden Sie Node v7 allabendlich. Dies hat (oder hatte?) Brechende Änderungen, einschließlich der Anforderungen, dass bestimmte synchrone Funktionen Callbacks bereitstellen, die in v6 nicht benötigt wurden. Ein Fehler, dass "cb ist keine Funktion" sicher klingt verdächtig wie dieses Problem.

Verwenden Sie entweder die aktuelle oder die LTS-Version von Node.js. Zum jetzigen Zeitpunkt ist die aktuelle Version von Node.js 6.3.1. Die LTS-Version ist 4.4.7.

Verwenden Sie nicht die nächtliche Version, es sei denn, Sie haben einen guten Grund zu versuchen, wie zum Beispiel etwas spezifisch zu testen. Wenn Sie eine nächtliche Version verwenden, seien Sie darauf vorbereitet, Probleme zu haben, in die Sie tauchen und untersuchen müssen.