Strapi installation error

Error when running command #npm run develop

[root@localhost nodejs]# npm run develop
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /usr/local/lib/nodejs/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open ‘/usr/local/lib/nodejs/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! /root/.npm/_logs/2022-09-22T09_36_49_190Z-debug-0.log

LOG OUTPUT BELOW

22 verbose title npm run develop
23 verbose argv “run” “develop”
24 timing npm:load:setTitle Completed in 1ms
25 timing config:load:flatten Completed in 2ms
26 timing npm:load:display Completed in 3ms
27 verbose logfile logs-max:10 dir:/root/.npm/_logs
28 verbose logfile /root/.npm/_logs/2022-09-22T09_36_49_190Z-debug-0.log
29 timing npm:load:logFile Completed in 4ms
30 timing npm:load:timers Completed in 0ms
31 timing npm:load:configScope Completed in 0ms
32 timing npm:load Completed in 32ms
33 silly logfile done cleaning log files
34 timing command:run Completed in 3ms
35 verbose stack Error: ENOENT: no such file or directory, open ‘/usr/local/lib/nodejs/package.json’
36 verbose cwd /usr/local/lib/nodejs
37 verbose Linux 4.18.0-372.26.1.el8_6.x86_64
38 verbose node v18.9.0
39 verbose npm v8.19.1
40 error code ENOENT
41 error syscall open
42 error path /usr/local/lib/nodejs/package.json
43 error errno -2
44 error enoent ENOENT: no such file or directory, open ‘/usr/local/lib/nodejs/package.json’
45 error enoent This is related to npm not being able to find a file.
45 error enoent
46 verbose exit -2
47 timing npm Completed in 45ms
48 verbose code -2
49 error A complete log of this run can be found in:
49 error /root/.npm/_logs/2022-09-22T09_36_49_190Z-debug-0.log

Welcome to the Strapi Community @sudhanshubhasin :birthday:

Question, did you run this inside where your project is ?
How does your project look ? It seems it can’t find a package.json file hence why you can’t run the program