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

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伐。

membalas semua (1)
左手右手慢动作

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

    Muat turun terkini
    Lagi>
    kesan web
    Kod sumber laman web
    Bahan laman web
    Templat hujung hadapan
    Tentang kita Penafian Sitemap
    Laman web PHP Cina:Latihan PHP dalam talian kebajikan awam,Bantu pelajar PHP berkembang dengan cepat!