Closed imgnx closed 6 years ago
I'm uninstalling and reinstalling nodemon. Apparently, I had forgotten to run npm install
before trying to run npm start
.
Now I'm getting this:
internal/modules/cjs/loader.js:596
throw err;
^
Error: Cannot find module '@shopify/shopify-express'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\donal\Desktop\Development\Dessero\shopify-node-app\server\index.js:17:24)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
[nodemon] app crashed - waiting for file changes before starting...
Figured it out. Pretty sure it's because I'm on Windows. I had to uninstall and reinstall NVM.
Whenever I try to run either
npm start
oryarn run start
ornodemon ./bin/www
, it starts running the same script over and over again while appending an extra./bin/www
to the end of the script.