Node.js install error

After installing node.js on ubuntu 16.0.4 i received the following error message while executing npm start. I’m not certain how best to troubleshoot this error.

1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose config Skipping project config: /home/qiime2/.npmrc. (matches userconfig)
5 verbose stack Error: ENOENT: no such file or directory, open '/home/qiime2/package.json'
6 verbose cwd /home/qiime2
7 error Linux 4.4.0-62-generic
8 error argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
9 error node v7.5.0
10 error npm  v4.1.2
11 error path /home/qiime2/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/qiime2/package.json'
16 error enoent ENOENT: no such file or directory, open '/home/qiime2/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 ]

Hi @moryfranklin22,

From the tracelog it looks like the command was called outside of the q2studio directory, as it was unable to find the package.json file. If you’re following the install instructions on the docs, then the step that seems to have been missed is the cd q2studio-0.0.6 from the first command block. If that is the case then the installation steps before calling npm start would have to be ran again inside of the q2studio directory that was extracted.

Hope this helps!

1 Like