scarecrowdu / vue2.x-cnode Goto Github PK
View Code? Open in Web Editor NEW基于vue+vue-router+vuex+axios+webpack开发的vue2.x Cnode社区
基于vue+vue-router+vuex+axios+webpack开发的vue2.x Cnode社区
你把你的node和npm版本号给写出来呗
我的实现方法有点复杂,想听听你的实现方法
#贴上运行编译的结构,提示安装node-sass找不到,可是执行
$ npm install -D node-sass
后结果仍旧一样,无法运行。
`
Alecc@DESKTOP-B3EFTS2 MINGW64 /e/Vue_project/vue2.x-Cnode (master)
$ npm run dev
[email protected] dev E:\Vue_project\vue2.x-Cnode
node build/dev-server.js
正在运行开发环境
Listening at http://localhost:9090
webpack: wait until bundle finished: /
ERROR Failed to compile with 2 errors19:10:28
error
Cannot find module 'node-sass'
@ .//vue-style-loader!.//css-loader!.//vue-loader/lib/style-rewriter.js?id=data-v-1dc6ef03!.//sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 4:14-240
error
Cannot find module 'node-sass'
@ .//vue-style-loader!.//css-loader!.//vue-loader/lib/style-rewriter.js?id=data-v-7e4e6f5a&scoped=true!.//sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/Menu.vue 4:14-265
webpack built 89a36f90b0e84393e0e7 in 5208ms
Hash: 89a36f90b0e84393e0e7
Version: webpack 1.14.0
Time: 5208ms
Asset Size Chunks Chunk Names
img/null.d601831.png 12.6 kB
img/timg.f172101.jpg 12.3 kB
img/error.5ec1b9b.png 16.2 kB
img/vincentSea.3a189ab.jpg 48 kB
vendor.js 3.55 kB 0 vendor.js
main.js 1.42 MB 1, 0 main
style.css 10.2 kB 1, 0 main
ERROR in Cannot find module 'node-sass'
@ .//vue-style-loader!.//css-loader!.//vue-loader/lib/style-rewriter.js?id=data-v-1dc6ef03!.//sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 4:14-240
ERROR in Cannot find module 'node-sass'
@ .//vue-style-loader!.//css-loader!.//vue-loader/lib/style-rewriter.js?id=data-v-7e4e6f5a&scoped=true!.//sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/Menu.vue 4:14-265
Child html-webpack-plugin for "index.html":
Asset Size Chunks Chunk Names
index.html 1.45 MB 0
Child extract-text-webpack-plugin:
Child extract-text-webpack-plugin:
webpack: Failed to compile.
`
返回常常会黑屏
#main.js里的代码
new Vue({
el: '#app',
router,
store,
...App
})
问题:没有搞明白为什么要...App,而不是App
登录的Token是怎么设置的
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.