I'm trying to create Angular project using nvm
. Executed below commands.
D:\Project1>nvm list
Output was: 14.16.1
Then, executed the below command.
F:\Ashok\Angular\Angular>nvm use 14.16.1
Output was: Now using node v14.16.1 (64-bit)
Below command has showed the correct node version which is fine.
F:\Ashok\Angular\Angular>node -v
Output was: v14.16.1
But, I'm getting error when trying to execute the below command.
F:\Ashok\Angular\Angular>ng -v
'ng' is not recognized as an internal or external command, operable program or batch file.
I've tried to install Angular-cli by using the below command. Looks like it's also worked well.
F:\Ashok\Angular\Angular>npm install @angular/cli
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it! npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported
@angular/cli@11.2.9 postinstall F:\Ashok\Angular\Angular\node_modules@angular\cli node ./bin/postinstall/script.js
npm WARN Angular No description npm WARN Angular No repository field. npm WARN Angular No license field.
- @angular/cli@11.2.9 added 7 packages from 4 contributors, removed 11 packages, updated 487 packages and audited 494 packages in 55.303s
26 packages are looking for funding run
npm fund
for detailsfound 0 vulnerabilities
I've tried to create Angular project by using the following command. But, I'm getting error. Can anyone please suggest me what is going wrong?
F:\Ashok\Angular\Angular>ng new my-first-project
'ng' is not recognized as an internal or external command, operable program or batch file.