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

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)
左手右手慢动作

package里面的那个配置写错了。

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!