0

想学习一下vue-hackernews-2.0这个例子,就从github上clone了一份。
运行npm install后提示

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN extract-text-webpack-plugin@2.1.2 requires a peer of webpack@^2.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN sw-precache-webpack-plugin@0.10.1 requires a peer of webpack@^1 || ^2 || ^2.1.0-beta || ^2.2.0-beta but none is installed. You must install peer dependencies yourself.

我安装着webpack3应该没什么影响。

然后我npm run dev提示正常

> vue-hackernews-2.0@ dev /Users/fuckc/Documents/vue-hackernews-2.0
> node server

server started at localhost:8080


 DONE  Compiled successfully in 2518ms                                            19:15:38



 DONE  Compiled successfully in 2818ms                                            19:15:38

webpack built 1345b8affebfcb6afefa in 2818ms

但是网页却没有弹出来,
我又执行了npm run buildnpm start依然没有弹出网站,
请问这是什么情况?

查看全部 5 个回答

0

我也是