Ionic start not working because of nx install issue

Im getting the following error when i run ionic start, it appears to be some issue installing nx. Can anyone suggest a work around please and thanks.

npm ERR! code 1
npm ERR! path C:\Users\webadmin\Desktop\trial\myfirstapp\node_modules\nx
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node ./bin/post-install
npm ERR! C:\Users\webadmin\Desktop\trial\myfirstapp\node_modules\nx\src\native\index.js:244
npm ERR! throw loadError

You need to provide more info.

Are you just running ionic start when it errors? Or is it with some additional options or after you pick certain options during the CLI prompts?

I’m running ionic start my-app blank and selecting angular it’s happen when it tries to install capacitor. I getting same error on two machines with different versions on npm and node.

Please outline the exact steps and commands you are running and when/where exactly the error is occurring.

Also getting similar error when I try and install nx only: npm install nx. Thanks

My issue is with npm on Virtual Machines. This is nothing to do with ionic. I will mark as resolved, thanks for the help!

1 Like