angular-cli构建工具报错

使用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)

守着一只汪
浏览 801回答 2
2回答

冉冉说

node-sass安装的问题,别用cnpm安装,换成npm安装就好了
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

AngularJS