当创建项目时出现
^
Error: Cannot find module './lib/source-map-generator'
Require stack:
- D:\Download\CRM\ws-ui\node_modules\source-map\source-map.js
- D:\Download\CRM\ws-ui\node_modules\snapdragon\lib\utils.js
- D:\Download\CRM\ws-ui\node_modules\snapdragon\lib\compiler.js
- D:\Download\CRM\ws-ui\node_modules\snapdragon\index.js
- D:\Download\CRM\ws-ui\node_modules\micromatch\node_modules\braces\lib\braces.js
- D:\Download\CRM\ws-ui\node_modules\micromatch\node_modules\braces\index.js
- D:\Download\CRM\ws-ui\node_modules\micromatch\index.js
的错误时,手动删除该项目下的node_module(记得改文件的属性,将只读去掉);然后直接npm install,就成功运行啦!