$npm start
如果輸入$npm start就會出現(xiàn):所在位置 行:1 字符: 6
+ $npm start
+????? ~~~~~
表達(dá)式或語句中包含意外的標(biāo)記“start”。
??? + CategoryInfo????????? : ParserError: (:) [], ParentContainsErrorRecordException
??? + FullyQualifiedErrorId : UnexpectedToken
如果輸入npm start,就會出現(xiàn)
> angular2-demo@1.0.0 start C:\Users\B\Desktop\angular2-demo-master
> webpack-dev-server --inline --colors --progress --port 3000
'webpack-dev-server' 不是內(nèi)部或外部命令,也不是可運(yùn)行的程序
或批處理文件。
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\B\\AppData\\Roaming\\npm\\nod
e_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v7.6.0
npm ERR! npm? v4.3.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular2-demo@1.0.0 start: `webpack-dev-server --inline --colors --progress --port 3
000`
npm ERR! Exit status 1
npm ERR! Failed at the angular2-demo@1.0.0 start script 'webpack-dev-server --inline --colors --progress --port 3000'.
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 angular2-demo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!???? webpack-dev-server --inline --colors --progress --port 3000
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!???? npm bugs angular2-demo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!???? npm owner ls angular2-demo
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! Please include the following file with any support request:
npm ERR!???? C:\Users\B\AppData\Roaming\npm-cache\_logs\2017-03-13T06_36_58_626Z-debug.log
2017-03-15
不是這個原因,我已經(jīng)弄起來了,謝謝
2017-03-13
http://www.cnblogs.com/liangxiaojie/p/4595406.html
可能是缺少Python環(huán)境,安裝一下,如果還出錯,應(yīng)該還要裝VS