[英]How to solve npm bower install error?
ipriyan@iPriyan:~$ sudo npm install -g bower
嗨,我嘗試通過上述命令安裝bower,但出現以下錯誤。
npm ERR! Linux 3.19.0-28-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "bower"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! file /home/ipriyan/.npm/node-uuid/1.4.3/package/package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! No data, empty input at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: /home/ipriyan/.npm/node-uuid/1.4.3/package/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! Please include the following file with any support request:
npm ERR! /home/ipriyan/npm-debug.log
如何解決這個問題? 我正在使用14.04 Ubuntu 64位操作系統,謝謝
看來您的package.json
文件有問題。 請仔細檢查。 您還可以使用以下命令對其進行修復:
node package.json
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.