在项目开发中,执行gulp css来生成合成的css文件时,报如下错误 

Error: Cannot find module 'browserslist'

解决方法:

npm install browserslist

 

后来我又遇到另一个错误 

Error: no such file or directory, scandir 'C:\My project\node_modules\gulp-sass\node_modules\node-sass\vendor'

怎么解决呢,用Adminstrator计算机用户打开Command Prompt (运行cmd)

进入到目录:

C:\My project\node_modules\gulp-sass\node_modules\

在这个目录下运行如下命令

C:\My project\node_modules\gulp-sass\node_modules\npm rebuild node-sass

 

相关文章:

  • 2022-12-23
  • 2021-09-22
  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
猜你喜欢
  • 2022-01-20
  • 2021-08-26
  • 2022-12-23
  • 2021-05-21
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案