₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,303 members, 8,449,626 topics. Date: Wednesday, 22 July 2026 at 07:10 AM

Toggle theme

Epsstore's Posts

Nairaland ForumEpsstore's ProfileEpsstore's Posts

1 2 3 4 5 6 7 8 9 10 11 12 (of 12 pages)

ProgrammingRe: Issue Which Nodejs And Npm After Installation by Epsstore(op): 12:23am On Jan 27, 2020
makavele:
npm commands are mapped to something already crafted in your package.json . . .

it cannot find the package.json file to see what npm restart is mapped to.

in other words, you don't have a node project sef to being with . . .

so what are you restartinghuh? huh huh huh huh
How come I have a nodejs.org folder and a node_modules folder on my home page
ProgrammingIssue Which Nodejs And Npm After Installation by Epsstore(op): 2:33pm On Jan 26, 2020
When i type npm restart i get these error ...i have not created a directory also, how do i proceed

i use ubuntu Lts 16.04 and my home directory contains a file called nodejs.org and node_modules

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'restart' ]
2 info using npm@3.5.2
3 info using node@v4.2.6
4 verbose config Skipping project config: /home/Myname/.npmrc. (matches userconfig)
5 verbose stack Error: ENOENT: no such file or directory, open '/home/Myname/package.json'
5 verbose stack at Error (native)
6 verbose cwd /home/Myname
7 error Linux 4.15.0-45-generic
8 error argv "/usr/bin/nodejs" "/usr/bin/npm" "restart"
9 error node v4.2.6
10 error npm v3.5.2
11 error path /home/Myname/package.json
12 error code ENOENT
13 error errno -2
14 error syscall open
15 error enoent ENOENT: no such file or directory, open '/home/Myname/package.json'
16 error enoent ENOENT: no such file or directory, open '/home/Myname/package.json'
16 error enoent This is most likely not a problem with npm itself
16 error enoent and is related to npm not being able to find a file.
17 verbose exit [ -2, true ]

1 2 3 4 5 6 7 8 9 10 11 12 (of 12 pages)