Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.8k views
in Technique[技术] by (71.8m points)

vuepress 运行报错

### 问题描述
运行npm run docs:dev报错

YAMLException: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 2, column 34:
    title: 解决mysql:ERROR 1045 (28000): Access denied for user 'root'@ ... 
                                     ^
    at generateError (E:personalCodepcokeokefhtwl.github.io
ode_modulesjs-yamllibjs-yamlloader.js:167:10)
    at throwError (E:personalCodepcokeokefhtwl.github.io
ode_modulesjs-yamllibjs-yamlloader.js:173:9)
    at readBlockMapping (E:personalCodepcokeokefhtwl.github.io
ode_modulesjs-yamllibjs-yamlloader.js:1027:9)
    at composeNode (E:personalCodepcokeokefhtwl.github.io
ode_modulesjs-yamllibjs-yamlloader.js:1359:12)
    at readDocument (E:personalCodepcokeokefhtwl.github.io
ode_modulesjs-yamllibjs-yamlloader.js:1525:3)
    at loadDocuments (E:personalCodepcokeokefhtwl.github.io
ode_modulesjs-yamllibjs-yamlloader.js:1588:5)
    at load (E:personalCodepcokeokefhtwl.github.io
ode_modulesjs-yamllibjs-yamlloader.js:1614:19)
    at Object.safeLoad (E:personalCodepcokeokefhtwl.github.io
ode_modulesjs-yamllibjs-yamlloader.js:1637:10)
    at module.exports (E:personalCodepcokeokefhtwl.github.io
ode_modulesgray-matterlibparse.js:12:17)
    at parseMatter (E:personalCodepcokeokefhtwl.github.io
ode_modulesgray-matterindex.js:109:17)
    at Object.matter [as default] (E:personalCodepcokeokefhtwl.github.io
ode_modulesgray-matterindex.js:50:10)
    at parseFrontmatter (E:personalCodepcokeokefhtwl.github.io
[email protected]:8:33)
    at Page.process (E:personalCodepcokeokefhtwl.github.io
ode_modules@vuepresscorelib
odePage.js:106:44)
    at async App.addPage (E:personalCodepcokeokefhtwl.github.io
ode_modules@vuepresscorelib
odeApp.js:354:5)
    at async E:personalCodepcokeokefhtwl.github.io
ode_modules@vuepresscorelib
odeApp.js:339:7
    at async Promise.all (index 25)

### 问题出现的环境背景及自己尝试过哪些方法
网站百度查到的,都是mysql密码的问题。
我使用cmd可以免密登录mysql,也可以通过密码登录mysql,mysql -u root 和mysql -u root -p都能正常登录


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...