Home > Net >  i get error when i run sudo npm run serve
i get error when i run sudo npm run serve

Time:08-27

I was getting error when i was installing npm but it seemed to me that it run fine. I created default app and i tried sudo npm run serve but i get this error
npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /home/00/00/00/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/home/00/00/00/package.json' npm ERR! enoent This is related to npm not being able to find a file.


I tried:
`npm cache clear` & `sudo npm cache clear` and i get error starting with As of npm@5, the npm cache self-heals from corruption issues.
NPM VERSION 8.18.0

CodePudding user response:

Fixed it, i needed to add package.json file to my app.

  • Related