I followed steps from angular.io to install angular-cli and create a base project. It fails to serve or build every time. I removed npm, node, all node dep. still nothing. Getting the same error using different versions of angular-cli (beta28).
My ng -v
@angular/cli: 1.0.0-rc.1
node: 6.10.0
os: darwin x64
@angular/common: 2.4.9
@angular/compiler: 2.4.9
@angular/core: 2.4.9
@angular/forms: 2.4.9
@angular/http: 2.4.9
@angular/platform-browser: 2.4.9
@angular/platform-browser-dynamic: 2.4.9
@angular/router: 3.4.9
@angular/cli: 1.0.0-rc.1
@angular/compiler-cli: 2.4.9
The errors I am getting:
ERROR in multi ./src/styles.css
Module not found: Error: Can't resolve 'style-loader' in '/Users/sebastian/workspace/ellipsis/frontend'
@ multi ./src/styles.css
ERROR in multi ./src/main.ts
Module not found: Error: Can't resolve '@ngtools/webpack' in '/Users/sebastian/workspace/ellipsis/frontend'
@ multi ./src/main.ts
ERROR in multi ./src/polyfills.ts
Module not found: Error: Can't resolve '@ngtools/webpack' in '/Users/sebastian/workspace/ellipsis/frontend'
@ multi ./src/polyfills.ts
ERROR in Error: Child compilation failed:
Entry module not found: Error: Can't resolve 'raw-loader' in '/Users/sebastian/workspace/ellipsis/frontend':
Error: Can't resolve 'raw-loader' in '/Users/sebastian/workspace/ellipsis/frontend'
So I installed one by one all needed modules. But than I am left with another error which is no longer a missing module.
I don't think it should be necessary to install this modules one by one. What am I missing here?
Running OSX Sierra
rm -rf project-nameandng new project-namecd ->ng build