node.js - 更新依赖的模块报错
伊谢尔伦
伊谢尔伦 2017-04-17 11:11:45
0
1
365

justhacker@justhacker-ThinkPad-Edge-E440:~/tools/codes/microblog$ npm update
npm ERR! Failed to parse json
npm ERR! Unexpected string
npm ERR! File: /home/justhacker/tools/codes/microblog/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "update"
npm ERR! cwd /home/justhacker/tools/codes/microblog
npm ERR! node -v v0.11.13-pre
npm ERR! npm -v 1.4.6
npm ERR! file /home/justhacker/tools/codes/microblog/package.json
npm ERR! code EJSONPARSE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/justhacker/tools/codes/microblog/npm-debug.log
npm ERR! not ok code 0
justhacker@justhacker-ThinkPad-Edge-E440:~/tools/codes/microblog$ npm install
npm ERR! install Couldn't read dependencies
npm ERR! Failed to parse json
npm ERR! Unexpected string
npm ERR! File: /home/justhacker/tools/codes/microblog/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! System Linux 3.5.0-48-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /home/justhacker/tools/codes/microblog
npm ERR! node -v v0.11.13-pre
npm ERR! npm -v 1.4.6
npm ERR! file /home/justhacker/tools/codes/microblog/package.json
npm ERR! code EJSONPARSE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/justhacker/tools/codes/microblog/npm-debug.log
npm ERR! not ok code 0

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

全部回复(1)
热门教程
더>
最新下载
더>
网站特效
网站源码
网站素材
프론트엔드 템플릿
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!