vue-cli执行npm install报错
发布于 2 天前 作者 MyNodeJs 133 次浏览 来自 问答

执行vue init webpack my-project没有问题,进入my-project执行npm run dev时报错,报错如下 npm ERR! Linux 4.4.0-28-generic npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” "install" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! file /home/user/.npm/regexpu-core/2.0.0/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/user/.npm/regexpu-core/2.0.0/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/user/Documents/node/my-project/npm-debug.log

麻烦问问大神什么原因呀?

1 回复

我的是vmware ubuntu环境

回到顶部