lg23

668 经验值

唉,我的还没搞定
你的目前的搞定是执行gulp后,浏览器控制台没有出现任何报错提示???

 "vue": "^2.0.1",
 "vue-resource": "^1.0.3"

我的版本就是这两个,那我的问题就不是版本的问题了??

意思是要切换镜像重新下载一个laravel 5.3

composer create-project laravel/laravel admin --prefer-dist "5.3.*"
我是这样创建的

我和你不一样,我创建laravel5.3时 配置里就是我上面的内容

我的package.json文件内容如下:
vue是默认版本,没改动过

{
  "private": true,
  "scripts": {
    "prod": "gulp --production",
    "dev": "gulp watch"
  },
  "devDependencies": {
    "bootstrap-sass": "^3.3.7",
    "gulp": "^3.9.1",
    "jquery": "^3.1.0",
    "laravel-elixir": "^6.0.0-14",
    "laravel-elixir-vue-2": "^0.2.0",
    "laravel-elixir-webpack-official": "^1.0.2",
    "lodash": "^4.16.2",
    "vue": "^2.0.1",
    "vue-resource": "^1.0.3"
  }
}
$ npm install
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp Do     S issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp Do     S issue
npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7     .0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in t     he tree.
npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN prefer global [email protected] should be installed with -g
npm WARN prefer global [email protected] should be installed with -g

> [email protected] install F:\vagrant\lnmp\zt360\admin\node_modules\node-sass
> node scripts/install.js

Cached binary found at C:\Users\lenovo\AppData\Roaming\npm-cache\node-sass\3.13.1\win32-x64-48_bindin     g.node

> [email protected] postinstall F:\vagrant\lnmp\zt360\admin\node_modules\node-sass
> node scripts/build.js
...
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\f     sevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"     darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

执行npm install 时 有上面一些警告,不知道是否有影响
执行gulp 后结果:

$ gulp
[15:13:51] Using gulpfile F:\vagrant\lnmp\zt360\admin\gulpfile.js
[15:13:51] Starting 'all'...
[15:13:51] Starting 'sass'...
[15:13:52] Finished 'sass' after 1.8 s
[15:13:52] Starting 'webpack'...
[15:13:55]
[15:13:55] Finished 'webpack' after 2.1 s
[15:13:55] Finished 'all' after 3.91 s
[15:13:55] Starting 'default'...
┌───────────────┬───────────────────────────────┬────────────────────────────────┬───────────────────     ─┐
│ Task          │ Summary                       │ Source Files                   │ Destination             │
├───────────────┼───────────────────────────────┼────────────────────────────────┼───────────────────     ─┤
│ mix.sass()    │ 1. Compiling Sass             │ resources\assets\sass\app.scss │ public\css\app.css      │
│               │ 2. Autoprefixing CSS          │                                │                         │
│               │ 3. Concatenating Files        │                                │                         │
│               │ 4. Writing Source Maps        │                                │                         │
│               │ 5. Saving to Destination      │                                │                         │
├───────────────┼───────────────────────────────┼────────────────────────────────┼───────────────────     ─┤
│ mix.webpack() │ 1. Transforming ES2015 to ES5 │ resources\assets\js\app.js     │ public\js\app.js        │
│               │ 2. Writing Source Maps        │                                │                         │
│               │ 3. Saving to Destination      │                                │                         │
└───────────────┴───────────────────────────────┴────────────────────────────────┴───────────────────     ─┘
[15:13:55] Finished 'default' after 9.04 ms

命令行结果正常,但浏览器控制台返回的报错还是一样?