为了账号安全,请及时绑定邮箱和手机立即绑定

angular-cli构建工具报错

angular-cli构建工具报错

守着一只汪 2018-07-20 21:28:58
使用angular-cli执行ng new hello-angular后执行ng serve报如下错误ERROR in ./src/main.ts Module build failed: TypeError: Cannot read property 'newLine' of undefined at Object.getNewLineCharacter (C:\Users\sunny\Documents\hello-angular\node_modules\typescript\lib\typescript.js:8062:20) at Object.createCompilerHost (C:\Users\sunny\Documents\hello-angular\node_modules\typescript\lib\typescript.js:44978:26) at Object.ngcLoader (C:\Users\sunny\Documents\hello-angular\node_modules\@ngtools\webpack\src\loader.js:171:31)
查看完整描述

2 回答

?
冉冉说

TA贡献1877条经验 获得超1个赞

node-sass安装的问题,别用cnpm安装,换成npm安装就好了

查看完整回答
反对 回复 2018-07-22
  • 2 回答
  • 0 关注
  • 800 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信