Truffle Drizzle Tutorial fails on last step 'npm run dev'

112 Views Asked by At

I am on windows 10, using vscode. Basically finished the petshop tutorial with no issues or problems using truffle.

when I enter the command npm run dev it fails as shown below.

PS Y:\code\petshop> npm run dev

> [email protected] dev
> lite-server

internal/modules/cjs/loader.js:316
      throw err;
      ^

Error: Cannot find module 'Y:\code\petshop\node_modules\immutable\dist\immutable'. Please verify that the package.json has a valid "main" entry
    at tryPackage (internal/modules/cjs/loader.js:308:19)
    at Function.Module._findPath (internal/modules/cjs/loader.js:521:18)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:872:27)
    at Function.Module._load (internal/modules/cjs/loader.js:730:27)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (Y:\code\petshop\node_modules\browser-sync\dist\hooks.js:3:17)       
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32) {
  code: 'MODULE_NOT_FOUND',
  path: 'Y:\\code\\petshop\\node_modules\\immutable\\package.json',
  requestPath: 'immutable'
}

Not sure where to go from here, nothing works. This type of error is a bit beyond me. Any and all help is greatly appreciated.

EDIT: changed screenshot to code snippet. And I realized the problem is that the 'immutable' path is non-existent in my node_modules. Still not sure how to address this. tried a cheeky npm install immutable to no avail....

0

There are 0 best solutions below