Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run dev error #26

Closed
oliviazhangjuan opened this issue Apr 24, 2017 · 17 comments
Closed

npm run dev error #26

oliviazhangjuan opened this issue Apr 24, 2017 · 17 comments

Comments

@oliviazhangjuan
Copy link

* ./src/main.js in multi ./build/dev-client babel-polyfill ./src/main.js

npm run dev 之后会出现这个错误,是为什么啊

@lin-xin
Copy link
Owner

lin-xin commented Apr 24, 2017

@oliviazhangjuan 描述详细一点

@oliviazhangjuan
Copy link
Author

git clone https://github.com/lin-xin/manage-system.git
cd manage-system
npm install
npm run dev
这一步之后终端就报这个错了

@lin-xin
Copy link
Owner

lin-xin commented Apr 25, 2017

详细的报错信息

@oliviazhangjuan
Copy link
Author

This relative module was not found:

  • ./src/main.js in multi ./build/dev-client babel-polyfill ./src/main.js

@lin-xin
Copy link
Owner

lin-xin commented Apr 25, 2017

看看node_modules里是不是没有 babel-polyfill

@oliviazhangjuan
Copy link
Author

有的
This dependency was not found:

  • element-ui/lib/theme-default/index.css in ./src/main.js

To install it, you can run: npm install --save element-ui/lib/theme-default/index.css

These relative modules were not found:

  • ./App in ./src/main.js
  • ../components/common/Home.vue in ./src/router/index.js
  • ../components/page/Readme.vue in ./src/router/index.js
  • ../components/page/BaseTable.vue in ./src/router/index.js
  • ../components/page/VueTable.vue in ./src/router/index.js
  • ../components/page/BaseForm.vue in ./src/router/index.js
  • ../components/page/VueEditor.vue in ./src/router/index.js
  • ../components/page/Markdown.vue in ./src/router/index.js
  • ../components/page/Upload.vue in ./src/router/index.js
  • ../components/page/BaseCharts.vue in ./src/router/index.js
  • ../components/page/MixCharts.vue in ./src/router/index.js
  • ../components/page/Login.vue in ./src/router/index.js
    现在又报这个错了。。。
    这些我都有啊

@lin-xin
Copy link
Owner

lin-xin commented Apr 25, 2017

那么奇怪,你的node版本和npm版本多少

@oliviazhangjuan
Copy link
Author

node 6.9.1
npm 3.10.8

@lin-xin
Copy link
Owner

lin-xin commented Apr 25, 2017

你再重新 npm install 看看会不会是哪些漏了

@oliviazhangjuan
Copy link
Author

我没有翻墙,也没有用淘宝镜像,会不会因为这个问题

@lin-xin
Copy link
Owner

lin-xin commented Apr 25, 2017

试试 npm install ,哪些装不上会在最下面有报错或警告的

@oliviazhangjuan
Copy link
Author

报错的我都重新单独安装了

@lin-xin
Copy link
Owner

lin-xin commented Apr 25, 2017

安装了还会报错吗

@oliviazhangjuan
Copy link
Author

重新安装都不会有报错了

@oliviazhangjuan
Copy link
Author

oliviazhangjuan commented Apr 25, 2017

你安装的时候翻墙了吗?用的是mac还是windows

@lin-xin
Copy link
Owner

lin-xin commented Apr 25, 2017

用windows的,没翻墙,这可能跟网络有关或者 镜像源吧,npm config set registry http://registry.cnpmjs.org
这是配置成http的,默认好像是https的,可能网络慢会下载不了吧

@oliviazhangjuan
Copy link
Author

好吧,那就奇怪了,我再试试吧,万分感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants