This is a demonstration on how to install the Angular CLI and some common trouble shooting tips.
Пікірлер: 15
@dennisfett7 жыл бұрын
Great introductory video!
@dredamonsta15 жыл бұрын
Hi Duncan I hav installed angular cli 6.2.2 and node 8.12.0. I tried to ng serve and i received "Could not find API compiler-cli" thank you for taking the time to read this any suggestion appreciated.
@duncanhunter90255 жыл бұрын
Hi Very hard to debug remotely. I would suggest trying the following if you do not already have a solution. 1. Make sure you are not installing the project on the root of your machine like your C drive on windows. 2. Uninstall the Angular CLI and reinstall in with npm uninstall @angular/cli Check your global version and npm packages in general to make sure nothing stale is installed with the command npm list -g --depth=0 3. Reinstall Angular CLI 4. Re make the angular project fro scratch in a new folder with ng new YOURAPPNAME
@dredamonsta15 жыл бұрын
first thank you for taking the time to reply. I am checking in now the good thing is i have the current lts version of node im going to uninstall and update on progress
@dredamonsta15 жыл бұрын
Kinda fixed but I have to use my build at the moment. The issue might be due to older dependencies on my Mac so I am going delete everything and install again
@akashpotdar68416 жыл бұрын
I'm getting permission denial issues. Can you pls help.
@akashpotdar68416 жыл бұрын
Rohit Bhambhani yes. So the directory where npm is written is basically root, we need to change the owner to the preferred user.
@spongebob26265 жыл бұрын
what about: ng: command not found (Mac OS) ??
@duncanhunter90255 жыл бұрын
Vetr hard to debug with so little info I recommend trying stack overflow after doing a free install and removing any old versions
@sajjanm015 жыл бұрын
i reckon you havent installed nodejs. please do that first
@krishnachaitanya73495 жыл бұрын
ng -v -bash: ng: command not found Please help me in mac. I followed the video, but unable to solve this problem
@duncanhunter90255 жыл бұрын
hi I wish I could helo but debugging your machine from here is a little tricky. I recommend following these steps angular.io/cli Sounds like the npm install did not add the cli or your path was not correctly updated