CNode

vue-cli执行npm install报错

问答
MMyNodeJs__legacy_5588c0ab01d3ce0d73d69098发布于10 年前最后回复10 年前1 回复5966 浏览0 收藏

执行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环境

参与回复
登录后即可参与回复。登录