I am getting the following error when trying to use Angular CLI on Mac OS Sierra:
$ ng new my-app
Error: Path "/app/app.module.ts" does not exist.
Path "/app/app.module.ts" does not exist.
I have tried the following approaches:
Deleting NodeJS completely using the following commands: (as stated on this stackoverflow post)
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*}
sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp
sudo rm -rf /opt/local/bin/node /opt/local/include/node /opt/local/lib/node_modules
Then re-install Angular CLI
npm install -g @angular/cli
I have checked folder permissions and the information states that I have read/write access to the folder.
What else could be the problem here?
I now have the following versions:
- Angular CLI: 1.7.1
- Node: 8.9.4
- OS: darwin x64
- NPM: v5.6.0
Hope someone can help.