Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run start error #15

Open
benwturner opened this issue Feb 2, 2023 · 5 comments
Open

npm run start error #15

benwturner opened this issue Feb 2, 2023 · 5 comments

Comments

@benwturner
Copy link

I get this when I try to start the app and reinstalling "debug" doesn't fix it.

node:internal/modules/cjs/loader:361
throw err;
^

Error: Cannot find module '/GraphGPT/node_modules/finalhandler/node_modules/debug/src/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:353:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:566:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (//GraphGPT/node_modules/finalhandler/index.js:14:13)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32) {
code: 'MODULE_NOT_FOUND',
path: '/GraphGPT/node_modules/finalhandler/node_modules/debug/package.json',
requestPath: 'debug'
}

@iAmmarTahir
Copy link

Which npm and node version are you using?

@manmeet3591
Copy link

Similar error for me

root@8cc416647c50:/GraphGPT# npm run start

[email protected] start /GraphGPT
react-scripts start

/GraphGPT/node_modules/eslint-webpack-plugin/node_modules/jest-worker/build/index.js:110
_ending;
^

SyntaxError: Unexpected token ;
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/GraphGPT/node_modules/eslint-webpack-plugin/dist/getESLint.js:9:5)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-02-03T12_31_59_641Z-debug.log

@manmeet3591
Copy link

Which npm and node version are you using?

@iAmmarTahir Which version will work ?

@iAmmarTahir
Copy link

I have these versions:
Node: v14.17.4
NPM: 7.9.1

@pomelo-nwu
Copy link

@manmeet3591 you should delete packages-lock.json and node_modules , and then npm install again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants