Uncaught TypeError: Cannot read property 'csrfToken' of undefined
at Object.<anonymous> (app.3df1225….js:27701)
at __webpack_require__ (app.3df1225….js:20)
at Object.<anonymous> (app.3df1225….js:971)
at __webpack_require__ (app.3df1225….js:20)
at Object.<anonymous> (app.3df1225….js:27722)
at __webpack_require__ (app.3df1225….js:20)
at app.3df1225….js:66
at app.3df1225….js:69
> @ development D:\phpStudy\WWW\laravel_element
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
系统找不到指定的路径。
events.js:163throw er; // Unhandled 'error' event
^
Error: spawn node_modules/webpack/bin/webpack.js ENOENT
at notFoundError (D:\phpStudy\WWW\laravel_element\node_modules\_cross-spawn@5.1.0@cross-spawn\lib\enoent.js:11:11)
at verifyENOENT (D:\phpStudy\WWW\laravel_element\node_modules\_cross-spawn@5.1.0@cross-spawn\lib\enoent.js:46:16)
at ChildProcess.cp.emit (D:\phpStudy\WWW\laravel_element\node_modules\_cross-spawn@5.1.0@cross-spawn\lib\enoent.js:33:19)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/w
ebpack.config.js`
npm ERR! Exit status 1npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log ofthis run can be found in:
npm ERR! C:\Users\Ruan0.0\AppData\Roaming\npm-cache\_logs\2017-05-26T08_07_24_887Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1npm ERR! @ dev: `npm run development`
npm ERR! Exit status 1npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log ofthis run can be found in:
npm ERR! C:\Users\Ruan0.0\AppData\Roaming\npm-cache\_logs\2017-05-26T08_07_30_932Z-debug.log
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
<linkrel="icon"href="/favicon.ico"type="image/x-icon"><linkrel="stylesheet"href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"><linkrel="stylesheet"href="{ mix('/static/app.css') }"><scriptsrc="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script><scriptsrc="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script><scriptsrc="https://cdn.bootcss.com/1000hz-bootstrap-validator/0.11.9/validator.min.js"></script><scriptsrc="https://cdn.bootcss.com/jquery_lazyload/1.9.7/jquery.lazyload.min.js"></script><scriptsrc="https://cdn.bootcss.com/store.js/1.3.20/store+json2.min.js"></script><!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --><!-- WARNING: Respond.js doesn't work if you view the page via file:// --><!--[if lt IE 9]>
<script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]--><script>var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>