Unknown error: Error: No valid exports main found for 'C:\Users\UTKARSH SRIVASTAVA\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\uuid'

Viewed 5268

Trying to install angular using cli but when I use this ng new foldername it gives the message.

Unknown error: Error: No valid exports main found for 'C:\Users\UTKARSH SRIVASTAVA\AppData\Roaming\npm\node_modules@angular\cli\node_modules\uuid'

please let me know where I'm wrong because previously in installed this using the same command and it's working but today it's can't please help me.

Thanks in advance

enter image description here

1 Answers

Just Update your node to current version v14.5.0 and reinstall angular "npm install -g@angular/cli".problem will be solved

Related