0 info it worked if it ends with ok 1 verbose cli [ ‘C:\Program Files\nodejs\node.exe’, 1 verbose cli ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’, 1 verbose cli ‘update’ ] 2 info using npm@2.14.7 3 info using node@v4.2.1 4 verbose stack Error: Failed to parse json 4 verbose stack Unexpected token ‘/’ at 14:3 4 verbose stack // “jade”: “~1.11.0”, 4 verbose stack ^ 4 verbose stack at parseError (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:379:11) 4 verbose stack at parseJson (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:68:23) 4 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:48:5 4 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:76:16 4 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3) 5 verbose cwd C:\Users\55345\WebstormProjects\myblog 6 error Windows_NT 10.0.10240 7 error argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” "update" 8 error node v4.2.1 9 error npm v2.14.7 10 error file C:\Users\55345\WebstormProjects\myblog\package.json 11 error code EJSONPARSE 12 error Failed to parse json 12 error Unexpected token ‘/’ at 14:3 12 error // “jade”: “~1.11.0”, 12 error ^ 13 error File: C:\Users\55345\WebstormProjects\myblog\package.json 14 error Failed to parse package.json data. 14 error package.json must be actual JSON, not just JavaScript. 14 error 14 error This is not a bug in npm. 14 error Tell the package author to fix their package.json file. JSON.parse 15 verbose exit [ 1, true ]
npm已经安装。webstorm中已经安装了npm,并且cmd中 npm -v 有版本显示。
为什么创建的package.json文件,{ “name”: “myblog”, “version”: “0.0.0”, “private”: true, “scripts”: { “start”: “node ./bin/www” }, “dependencies”: { “body-parser”: “~1.13.2”, “cookie-parser”: “~1.3.5”, “debug”: “~2.2.0”, “express”: “~4.13.1”, “ejs”: “*”, // “jade”: “~1.11.0”, “morgan”: “~1.6.1”, “serve-favicon”: “~2.3.0” } }
不让我更新?
我的问题。。sorry。。。太低级了。