Home > other >  Getting error on npm start while starting local host server in React.js project
Getting error on npm start while starting local host server in React.js project

Time:10-18

Getting this error on npm start

'Equipment' is not recognized as an internal or external command, operable program or batch file. internal/modules/cjs/loader.js:983
throw err; ^

Error: Cannot find module 'C:\Users\Home\Desktop\react-scripts\bin\react-scripts.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15) at Function.Module._load (internal/modules/cjs/loader.js:862:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) at internal/main/run_main_module.js:18:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }

enter image description here

CodePudding user response:

  1. Delete the node_modules directory

  2. Delete the package-lock.json file

  3. Run npm install

  4. Run npm start

CodePudding user response:

Resolved my problem by changing the name of parent folder of my app.

Previously it contained spaces therefore it was showing

'not recognized as an internal or external command'

error.

  • Related