Strapi Deploying Issue

[details=“System Information”]

  • Strapi Version:
  • Operating System: Windows 10 64bit
  • Database: SQLite
  • Node Version: v14.17.1
  • NPM Version: 6.14.13
    Hello Everyone,

I tried to deploy Strapi on my PC and everything went smooth till the stage which says "Building your admin UI with development configuration…

post above mentioned stage i got this error

after doing bit research on github and stackoverflow, which guided to clear the npm cache, I did so and tried running the npm commands again and getting the following errors:-

C:\Users\Gaurav>npm run start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\Gaurav\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open ‘C:\Users\Gaurav\package.json’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Gaurav\AppData\Roaming\npm-cache_logs\2021-06-26T16_22_29_342Z-debug.log

C:\Users\Gaurav>npm run strapi
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\Gaurav\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open ‘C:\Users\Gaurav\package.json’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Gaurav\AppData\Roaming\npm-cache_logs\2021-06-26T16_23_02_083Z-debug.log

C:\Users\Gaurav>npm run build
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\Gaurav\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open ‘C:\Users\Gaurav\package.json’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Gaurav\AppData\Roaming\npm-cache_logs\2021-06-26T16_23_26_456Z-debug.log

C:\Users\Gaurav>npm run develop
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\Gaurav\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open ‘C:\Users\Gaurav\package.json’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Gaurav\AppData\Roaming\npm-cache_logs\2021-06-26T16_23_44_803Z-debug.log

please help in resolving the issue, thanks in advance

Regards,
Gaurav


Hello @GauravSharma. I’ve taken a look at the screenshots and stack traces you have posted in. The first part of your issue is related to this issue on Github. Even though not conclusive, the source of your problem might be environmental configurations.

What command did you use to clear your npm cache? It seems from the errors you’re getting, you may have deleted your package.json which Node.js based projects require to manage their dependencies.

Hello @Richard_Nsama ,

I think I used ‘npm clean cache’ command. And package.json file still there in my-project folder.