本文介绍了模块构建失败(来自./node_modules/postcss-loader/src/index.js)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用角度和节点,当我运行命令 npm start 时,出现此错误

I am working with angular and node, when i run the command npm start i get this error

我尝试查看一些类似的帖子,但是没有解决方案.我的node.js版本是

I have tried view some similar post but no solution work. My node.js version is

我的棱角版本是

推荐答案

我建议使用节点10,因为它更适合角度9.您可以使用 nvm .

I recommend to use node 10 as it more suitable for angular 9. You can easily do that using nvm.

然后您可以尝试以下步骤,

Then you can try below steps,

  • rm -rf node_modules
  • npm i-精确保存
  • ng s

这篇关于模块构建失败(来自./node_modules/postcss-loader/src/index.js)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 03:21