ciqulover / cms-of-blog Goto Github PK
View Code? Open in Web Editor NEWdeprecated
deprecated
Hello,博主,你的项目代码真是简洁精炼,我受到你项目的启发,写了一个个人博客项目,不知道在哪里署名博主的名字?这是我的项目地址
不明白为什么Article.vue中最后还要加上watch,求指点一二
请问修改相应代码之后怎么编译啊
/Users/justin/Workspace/CMS-of-Blog/server/api.js:28
const {name, pwd} = req.body
^
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:404:25)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/Users/justin/Workspace/CMS-of-Blog/server/index.js:9:13)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:457:10)
at startup (node.js:136:18)
at node.js:972:3
npm ERR! Darwin 16.1.0
npm ERR! argv "/Users/justin/.nvm/versions/node/v5.0.0/bin/node" "/Users/justin/.nvm/versions/node/v5.0.0/bin/npm" "start"
npm ERR! node v5.0.0
npm ERR! npm v3.8.8
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node ./server/index
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node ./server/index'.
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 CMS2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./server/index
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs CMS2
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls CMS2
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/justin/Workspace/CMS-of-Blog/npm-debug.log
======
I got this error after run npm start
谢谢,对ES6不是很了解
怀疑是不是需要转译之后再插入mongodb?
谢谢
运行npm run dev
后浏览器打开URL http://localhost:8080/,
页面显示:
Error occured while trying to proxy to: localhost:8080/
Terminal中显示如下输出:
> [email protected] dev /home/leo/temp/CMS-of-Blog
> cross-env NODE_ENV=development webpack-dev-server --open --inline --hot
keywords if/then/else require v5 option
Project is running at http://localhost:8080/
webpack output is served from /dist/
404s will fallback to /index.html
[HPM] Error occurred while trying to proxy request / from localhost:8080 to http://localhost:3000/ (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /favicon.ico from localhost:8080 to http://localhost:3000/ (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
Hash: 49d34f485941bceadb78
Version: webpack 2.1.0-beta.28
Time: 5002ms
Asset Size Chunks Chunk Names
me.jpg?465872307cc7d85910962d99ca76b4cd 13.9 kB [emitted]
25a32416abee198dd821b0b17a198a8f.eot 76.5 kB [emitted]
d7c639084f684d66a1bc66855d193ed8.svg 392 kB [emitted] [big]
fontawesome-webfont.svg?0b779b31c9eef399ecd2848979788835 82 bytes [emitted]
e6cf7c6ec7c2d6f670ae9d762604cb0b.woff2 71.9 kB [emitted]
c8ddf1e5e5bf3682bc7bebf30f394148.woff 90.4 kB [emitted]
1dc35d25e61d819a9c357074014867ab.ttf 153 kB [emitted]
main.js 2.09 MB 0[emitted] [big]main
setup.js 1.41 MB 1[emitted] [big]setup
styles.css 17 kB 0[emitted] main
index.css 37.2 kB 0[emitted] main
favicon.ico 4.29 kB [emitted]
me.jpg 13.9 kB [emitted]
chunk {0} main.js, styles.css, index.css (main) 699 kB [entry] [rendered]
...
Child extract-text-webpack-plugin:
chunk {0} extract-text-webpack-plugin-output-filename 44.2 kB [entry] [rendered]
[0] ./~/css-loader/lib/css-base.js 1.51 kB {0} [built]
[1] ./~/css-loader!./src/assets/css/font-awesome.css 39.5 kB {0} [built]
[2] ./~/css-loader!./src/assets/css/highlight.css 1.01 kB {0} [built]
[3] ./src/assets/fonts/fontawesome-webfont.eot 82 bytes {0} [built]
[4] ./src/assets/fonts/fontawesome-webfont.eot?v=4.6.3 82 bytes {0} [built]
[5] ./src/assets/fonts/fontawesome-webfont.ttf?v=4.6.3 82 bytes {0} [built]
[6] ./src/assets/fonts/fontawesome-webfont.svg?v=4.6.3 102 bytes {0} [built]
[7] ./src/assets/fonts/fontawesome-webfont.woff2?v=4.6.3 84 bytes {0} [built]
[8] ./src/assets/fonts/fontawesome-webfont.woff?v=4.6.3 83 bytes {0} [built]
[9] ./~/css-loader!./~/sass-loader!./src/style/index.scss 1.67 kB {0} [built]
[HPM] Error occurred while trying to proxy request / from localhost:8080 to http://localhost:3000/ (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /favicon.ico from localhost:8080 to http://localhost:3000/ (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
貌似proxy 8080 端口到 3000 端口这一步出错了,如何解决这个问题呢?
vue.js新手,请多多指教,谢谢!
[email protected] dev /Users/zj/Documents/company_code/CMS-of-Blog
cross-env NODE_ENV=development webpack-dev-server --open --inline --hot
/Users/zj/Documents/company_code/CMS-of-Blog/node_modules/cross-env/dist/index.js:58
var envVars = Object.assign({}, process.env);
^
TypeError: undefined is not a function
at getCommandArgsAndEnvVars (/Users/zj/Documents/company_code/CMS-of-Blog/node_modules/cross-env/dist/index.js:58:24)
at crossEnv (/Users/zj/Documents/company_code/CMS-of-Blog/node_modules/cross-env/dist/index.js:22:35)
at Object. (/Users/zj/Documents/company_code/CMS-of-Blog/node_modules/cross-env/bin/cross-env.js:3:19)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
npm ERR! Darwin 16.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "dev"
npm ERR! node v0.12.7
npm ERR! npm v2.12.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] dev: cross-env NODE_ENV=development webpack-dev-server --open --inline --hot
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script 'cross-env NODE_ENV=development webpack-dev-server --open --inline --hot'.
npm ERR! This is most likely a problem with the CMS2 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 webpack-dev-server --open --inline --hot
npm ERR! You can get their info via:
npm ERR! npm owner ls CMS2
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/zj/Documents/company_code/CMS-of-Blog/npm-debug.log
开始的时候注册了一个,但是后来找不到了注册入口了,悲剧……
Demo看不到
已解决、
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.