vuepress: Module build failed: CssSyntaxError

when i trying to run vuepress dev test ,Module build failed: CssSyntaxError image

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (7 by maintainers)

Commits related to this issue

Most upvoted comments

我发现,全局和项目中都安装的话就会发生这个错,所以我卸载了全局的vuepress就好了

@ZhuLiangT Thank you!

I uninstalled vuepress from global, then add vuepress as devDependency, use NPM scripts to run my project, it works! So this problem must caused by something in global environment.

Here is my all packages

npm list -g --depth 0

/usr/local/lib
├── cnpm@5.2.0
├── npm@5.6.0
├── vue@2.5.16
├── vue-cli@2.9.3
└── vuepress@0.5.0

And there have error too

npm ERR! error in /usr/local/lib/node_modules/vuepress/node_modules/_@mrmlnc_readdir-enhanced@2.2.1@@mrmlnc: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/vuepress/node_modules/_@mrmlnc_readdir-enhanced@2.2.1@@mrmlnc/package.json'
npm ERR! error in /usr/local/lib/node_modules/vuepress/node_modules/_@shellscape_koa-send@4.1.3@@shellscape: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/vuepress/node_modules/_@shellscape_koa-send@4.1.3@@shellscape/package.json'
npm ERR! error in /usr/local/lib/node_modules/vuepress/node_modules/_@shellscape_koa-static@4.0.5@@shellscape: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/vuepress/node_modules/_@shellscape_koa-static@4.0.5@@shellscape/package.json'
npm ERR! error in /usr/local/lib/node_modules/vuepress/node_modules/_@vue_component-compiler-utils@1.0.0@@vue: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/vuepress/node_modules/_@vue_component-compiler-utils@1.0.0@@vue/package.json'

And I installed by npm install -g vuepress