noikiy

2114 经验值

found in

---> <QuestionFollowButton> at /home/vagrant/Code/zhihu-app/resources/assets/js/components/QuestionFollowButton.vue

   <Root>

warn @ app.js?id=814ff0e…:32266
handleError @ app.js?id=814ff0e…:32349
callHook @ app.js?id=814ff0e…:34454
insert @ app.js?id=814ff0e…:35313
invokeInsertHook @ app.js?id=814ff0e…:37256
patch @ app.js?id=814ff0e…:37426
Vue._update @ app.js?id=814ff0e…:34201
updateComponent @ app.js?id=814ff0e…:34325
get @ app.js?id=814ff0e…:34668
Watcher @ app.js?id=814ff0e…:34657
mountComponent @ app.js?id=814ff0e…:34329
./node_modules/vue/dist/vue.common.js.Vue$3.$mount @ app.js?id=814ff0e…:39650
./node_modules/vue/dist/vue.common.js.Vue$3.$mount @ app.js?id=814ff0e…:41853
Vue._init @ app.js?id=814ff0e…:36023
Vue$3 @ app.js?id=814ff0e…:36108
./resources/assets/js/app.js @ app.js?id=814ff0e…:41958
__webpack_require__ @ app.js?id=814ff0e…:20
0 @ app.js?id=814ff0e…:43241
__webpack_require__ @ app.js?id=814ff0e…:20
(anonymous) @ app.js?id=814ff0e…:63
(anonymous) @ app.js?id=814ff0e…:66
app.js?id=814ff0e…:32353 TypeError: Cannot read property 'post' of undefined

at VueComponent.mounted (app.js?id=814ff0e…:1660)
at callHook (app.js?id=814ff0e…:34452)
at Object.insert (app.js?id=814ff0e…:35313)
at invokeInsertHook (app.js?id=814ff0e…:37256)
at Vue$3.patch [as __patch__] (app.js?id=814ff0e…:37426)
at Vue$3.Vue._update (app.js?id=814ff0e…:34201)
at Vue$3.updateComponent (app.js?id=814ff0e…:34325)
at Watcher.get (app.js?id=814ff0e…:34668)
at new Watcher (app.js?id=814ff0e…:34657)
at mountComponent (app.js?id=814ff0e…:34329)

handleError @ app.js?id=814ff0e…:32353
callHook @ app.js?id=814ff0e…:34454
insert @ app.js?id=814ff0e…:35313
invokeInsertHook @ app.js?id=814ff0e…:37256
patch @ app.js?id=814ff0e…:37426
Vue._update @ app.js?id=814ff0e…:34201
updateComponent @ app.js?id=814ff0e…:34325
get @ app.js?id=814ff0e…:34668
Watcher @ app.js?id=814ff0e…:34657
mountComponent @ app.js?id=814ff0e…:34329
./node_modules/vue/dist/vue.common.js.Vue$3.$mount @ app.js?id=814ff0e…:39650
./node_modules/vue/dist/vue.common.js.Vue$3.$mount @ app.js?id=814ff0e…:41853
Vue._init @ app.js?id=814ff0e…:36023
Vue$3 @ app.js?id=814ff0e…:36108
./resources/assets/js/app.js @ app.js?id=814ff0e…:41958
__webpack_require__ @ app.js?id=814ff0e…:20
0 @ app.js?id=814ff0e…:43241
__webpack_require__ @ app.js?id=814ff0e…:20
(anonymous) @ app.js?id=814ff0e…:63
(anonymous) @ app.js?id=814ff0e…:66
app.js?id=814ff0e…:39670 You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html

这是什么原因呢?

npm ERR! Linux 4.4.0-66-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "development"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ development script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/vagrant/Code/zhihu-app/npm-debug.log

jelly 老师 !
laravel5.4
执行 npm run development 后就上面了?

电信的网络 又在乱抽风 刚前几天我自己的搬瓦工 vps的vpn 也给弄不好用了 不知道在 干嘛的。一天到晚的;

现在可以看了 也可以下载了 可能是我的100M的宽带不稳定

视频看到中间就卡了 下载也不好下载!

我写过thinkphp的model 里面有许多的byId、create、delete、getData的方法然后在 任何的model 和控制中 可以通过D方法去调用
这里respository我的理解是
已经分成三层了 我的理解是
controller => 实现方式
model => 表与表的关系 字段规则 发送邮件重写 还有trait的引用
repository => use对应的model了 然后控制器里就可以用里面的逻辑了
验证表单写在app/Http/Requets 里面

不知道我的理解是不是太片面了

是的!phpstorm里运行只要 点一下就 可以执行编译 要是要用命令行 也是可以的。
问题就是phpstorm在win里 在show npm script 里面点击development报错
D:\PhpStorm-2017.1.1\bin\runnerw.exe D:\Nodejs\node.exe D:\Nodejs\node_modules\npm\bin\npm-cli.js run development --scripts-prepend-node-path

@ development D:\phpStudy\Homestead\zhihu-app
cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

'cross-env' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\Nodejs\\node.exe" "D:\\Nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "development" "--scripts-prepend-node-path"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ development script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:\phpStudy\Homestead\zhihu-app\npm-debug.log