recherche

Maison  >  Questions et réponses  >  le corps du texte

node.js - 更新依赖的模块报错

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

伊谢尔伦伊谢尔伦2777 Il y a quelques jours558

répondre à tous(1)je répondrai

  • ringa_lee

    ringa_lee2017-04-17 11:13:45

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

    répondre
    0
  • Annulerrépondre