#npm run dev failing on Windows

1 messages · Page 1 of 1 (latest)

quasi canopy
#

Hi there, I am developing a website using Remix. However, I am unable to run it locally on localhost on my Windows PC. However, the same project is running perfectly on macOS and I am able to run it locally.

When I try to run "npm run dev" it is giving me some weird syntax error in remix node_modules file. I am attaching screenshots for the error and my package.json scripts. Tried uninstalling and reinstalling node_modules but same error.

Any help would be appreciated. Thank you!

north juniper
#

Does a clean install of Remix work on your Windows PC?
npx create-remix

north juniper
quasi canopy
quasi canopy
north juniper
quasi canopy
north juniper
#

It's something to do with the dev script in package.json, but I don't know enough about it to know exactly how to fix it sorry.

#

You might able to compare it with the stacks or express template one to get somewhere?

viral gale
#

I had an issue like this a while back. From what I remember I had to delete the package-lock.json file and node_modules folder. Then rerun npm install. The lock file was causing npm to install MacOS binaries of some dependencies instead of the Windows ones.

quasi canopy