In template/my_component/frontend, run npm install
I get the following error:
npm ERR! code ENOTDIR
npm ERR! syscall mkdir
npm ERR! path G:\Other computers\My Laptop\Documents\Work\Coding\st_component-template_2\template\my_component\frontend\node_modules\babel-jest\node_modules
npm ERR! errno -4052
npm ERR! ENOTDIR: not a directory, mkdir 'G:\Other computers\My Laptop\Documents\Work\Coding\st_component-template_2\template\my_component\frontend\node_modules\babel-jest\node_modules'
npm ERR! A complete log of this run can be found in: C:\Users\phili\AppData\Local\npm-cache\_logs\2024-02-06T20_03_04_381Z-debug-0.log
Is there a file called tmp in template/my_component/frontend? What happens if you delete tmp and then try to do npm install again? (related StackOverflow thread)
Thank you, that’s fixed it. I seem to have run into this issue, which I didn’t come across when I did a StackOverflow trawl.
I think it might be some combination of trying to run the script on Google Drive on Windows and spaces in the path - I tested and can get it to run on non-Google Drive directories that have spaces in the path.