vuepress
vuepress copied to clipboard
按照官网操作的,启动报错。卸载重新来,还是报这个错
请问怎么解决呀
D:\codeDemo\blog-demo\vuepress-starter\node_modules@vuepress\shared-utils\lib\env.js:3
isDebug;
SyntaxError: Unexpected token ;
at new Script (vm.js:80:7)
at createScript (vm.js:274:10)
at Object.runInThisContext (vm.js:326:10)
at Module._compile (internal/modules/cjs/loader.js:664:28)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] docs:dev: vuepress dev docs
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] docs:dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\FF-C\AppData\Roaming\npm-cache_logs\2022-01-07T01_24_19_204Z-debug.log PS D:\codeDemo\blog-demo\vuepress-starter>
用yarn重新来了一遍,还是报错 error Command failed with exit code 1.
【不知道怎么办了】
应该是node版本比较低,换一个node版本试试
厉害了,问题解决了,切换到高版本node就解决了
应该是node版本比较低,换一个node版本试试
我的是18,切换到16就可以了(😥虽然18现在已经是LTS了)