Home > Back-end >  After installing node module @angular/cli@latest, the ng file doesn't exist
After installing node module @angular/cli@latest, the ng file doesn't exist

Time:02-08

I am doing this from Git Bash on Windows 10. The command was:

npm install --save @angular/cli@latest

The output was:

  @angular/[email protected]
added 35 packages from 15 contributors and audited 914 packages in 4.852s

Directory node_modules@angular\cli\bin contains the following files:

bootstrap.js
ng.js
package.json

It also contains directory postinstall with these two files:

analytics-prompt.js
script.js

Everywhere I search I see references to node_modules@angular\cli\bin\ng, but that file doesn't exist. I have "ng.js" but not "ng".

Has something changed with newer versions of the Angular CLI?

CodePudding user response:

Yes, the file is now called ng.js. It was renamed since @angular/cli v.13.0.0 by this specific commit.

You should not focus on that extension change, rather follow your tutorials & documents looking at the file content their pointing you at.

  •  Tags:  
  • Related