vue-admin
vue-admin copied to clipboard
laravel + vue-admin 报错
This dependency was not found:
* !!vue-style-loader!css-loader?sourceMap!../../vue-loader/lib/style-rewriter?{"id":"data-v-c90601f4","scoped":false,"hasInlineConfig":true}!styl-loader!../../vue-loader/lib/selector?type=styles&index=0!./Quill.vue in ./~/vue-bulma-quill/src/Quill.vue
To install it, you can run: npm install --save !!vue-style-loader!css-loader?sourceMap!../../vue-loader/lib/style-rewriter?{"id":"data-v-c90601f4","scoped":false,"hasInlineConfig":true}!styl-loader!../../vue-loader/lib/selector?type=styles&index=0!
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
npm ERR! node v7.7.1
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] dev: `node node_modules/cross-env/dist/bin/cross-env.js 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 [email protected] dev script 'node node_modules/cross-env/dist/bin/cross-env.js 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 vue-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node node_modules/cross-env/dist/bin/cross-env.js 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 vue-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls vue-admin
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\WTServer\WWW\demovue2\npm-debug.log
@fundon 有遇到过这错误么 是我 webpack 配置出错了 还是版本组件冲突?
vue-bulma-quill/src/Quill.vue
模板有 lang=styl
解析error 为什么 会自动加载 styl-loader
npm install --save !!vue-style-loader!css-loader?sourceMap!../../vue-loader/lib/style-rewriter?{"id":"data-v-c90601f4","scoped":false,"hasInlineConfig":true}!styl-loader!../../vue-loader/lib/selector?type=styles&index=0!
好像是因为 styl-loader!../../vue-loader/lib/selector?type=styles&index=0!
styl-loader
找不到 为什么会加载 styl-loader
Should install
"stylus": "^0.54.5",
"stylus-loader": "^2.4.0"
See https://github.com/vuejs/vue-hackernews-2.0/blob/master/build/webpack.client.config.js#L37-L42.
@fundon
stylus:0.54.5
stylus-loader: 2.5.0
版本是满足的 . 是不是因为 laravel-min
使用 webpack module.rules[]
配置选项了呢?
@fundon 是这样的!! rules配置 覆盖了 loaders配置 但是出现 #118 一样的问题了
$ npm update -d
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
......
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm info ok
@fundon @tylerjheslop 完美解决了 谢谢你们