As it is said in the error I’ll quote here the content in the mentioned log file (as a new user I cannot attach more than one image):
0 info it worked if it ends with ok
1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘run’, ‘dev’ ]
2 info using npm@2.15.1
3 info using node@v0.10.48
4 verbose node symlink /usr/bin/node
5 verbose run-script [ ‘predev’, ‘dev’, ‘postdev’ ]
6 info predev dcc-portal-ui@4.2.6-SNAPSHOT
7 verbose unsafe-perm in lifecycle true
8 info dcc-portal-ui@4.2.6-SNAPSHOT Failed to exec predev script
9 verbose stack Error: dcc-portal-ui@4.2.6-SNAPSHOT predev: npm run checkhost
9 verbose stack Exit status 1
9 verbose stack at EventEmitter. (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:217:16)
9 verbose stack at EventEmitter.emit (events.js:98:17)
9 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack at ChildProcess.emit (events.js:98:17)
9 verbose stack at maybeClose (child_process.js:766:16)
9 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:833:5)
10 verbose pkgid dcc-portal-ui@4.2.6-SNAPSHOT
11 verbose cwd /transplant/peris/dcc-portal-4.3.17/dcc-portal-4.3.17/dcc-portal-ui
12 error Linux 3.2.0-29-virtual
13 error argv “/usr/bin/node” “/usr/bin/npm” “run” “dev”
14 error node v0.10.48
15 error npm v2.15.1
16 error code ELIFECYCLE
17 error dcc-portal-ui@4.2.6-SNAPSHOT predev: npm run checkhost
17 error Exit status 1
18 error Failed at the dcc-portal-ui@4.2.6-SNAPSHOT predev script ‘npm run checkhost’.
18 error This is most likely a problem with the dcc-portal-ui package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error npm run checkhost
18 error You can get information on how to open an issue for this project with:
18 error npm bugs dcc-portal-ui
18 error Or if that isn’t available, you can get their info via:
18 error
18 error npm owner ls dcc-portal-ui
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
From that point I have continued the portal setup to run it but I’m facing another error that I don’t know how to solve while running the npm run dev command:
I’ve tried to upload the version of some of the packages.json which contained the os.tmpDir() call and also I’ve tried to replace it with the command os.tmpdir() previously installing the npm library os-tmpdir:
npm install --save os-tmpdir
But the same error appears again. Do you know what can I do to solve it?
Could you confirm for us which git branch you’re on?
I suspect you may have checked out our master branch, which is unfortunately not updated very often (and still has grunt server as the dev task) and can be quite stale
If that’s the case, please try checking out the develop branch and running npm install again (you may have to delete the contents of the node_modules folder first)
We have downloaded the last version of the portal through the link you gave us, compiled everything but again, when running the npm run dev command, a new error appears: