2016-11-30 4 views
0

Ich benutze die webpack-simple Vorlage mit VueJS v2.x. Zuerst läuft "npm run build" nicht. Das Ausführen von "npm run dev" funktioniert. Wenn ich einen Fehler in meinem Quellcode habe, bevor "npm run dev" ausgeführt wird, schlägt der Befehl fehl. Ich entschuldige mich dafür, keinen Code angezeigt zu haben, aber ich brauche keine Hilfe, um meinen Code zu reparieren. Ich möchte wissen, ob das Webpack funktioniert. Wenn ein Fehler auftritt, wird eine sinnlose Fehlermeldung ausgegeben. Hier ist der Fehler:Webpack: Ist dies das beabsichtigte Verhalten?

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" "run" "dev" 
npm ERR! node v7.1.0 
npm ERR! npm v3.10.9 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] dev: `cross-env NODE_ENV=development webpack-dev-server --open --inline --hot` 
npm ERR! Exit status 3221226505 
npm ERR! 
npm ERR! Failed at the [email protected] dev script 'cross-env NODE_ENV=development webpack-dev-server --open --inline --hot'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the gg package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  cross-env NODE_ENV=development webpack-dev-server --open --inline --hot 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs gg 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls gg 
npm ERR! There is likely additional logging output above. 

Antwort

0

Das Problem war von Knoten und Npm. Ich lief auf win10 und verwendete Knoten v7.10. Nach dem Herunterstufen auf 6.9 hat alles richtig funktioniert

Verwandte Themen