Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 310
Ayush Srivastava Avatar asked Jun 27 '20 11:06

Ayush Srivastava


1 Answers

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

like image 129
helper Avatar answered Oct 22 '22 20:10

helper