If you are on Windows, then we maybe have the same issue.
After hours of researching and digging everywhere I found the solution.
You need to open a linux WSL instance and copy all of the project source code there and run all the commands in the bash or shell.
The way I did it:
In VS code go to the plugin Remote Explorer
If you don’t already have it, install it in vs code:
VS Marketplace Link: Remote Explorer - Visual Studio Marketplace
Press on + to add a distro (I’ve added ubuntu latest version)
When you are in the terminal make sure to install curl and then node
Note: use “sudo” or switch to root if you got permission issues “sudo su root”
- go to the source code in Windows and make sure to delete node_modules
then: - copy files from /mnt/your/project/path to ~/my_project
- cd ~/my_project
- npm install
And you are ready