Gzweb: npm install error


#1

Hi,

I am trying to do a clean installation of the platform from the bitbucket repository.

In the step “8. Install Gzweb”, when trying to build gzweb (step 8.4) by means of:

cd $HBP # your NRP source code directory
cd gzweb
npm install

I am getting this error as output:

npm ERR! Linux 4.4.0-93-generic
npm ERR! argv “/home/user/.nvm/versions/node/v7.10.1/bin/node” “/home/user/.nvm/versions/node/v7.10.1/bin/npm” “install”
npm ERR! node v7.10.1
npm ERR! npm v4.2.0

npm ERR! No version provided
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /home/user/.npm/_logs/2017-09-21T07_19_32_805Z-debug.log

I have checked the log file but I cannot identify what is the problem. Any suggestions?

Have a good day.

Kind regards,

Carlos


#2

Hello Carlos,

Could you please open a terminal and write the command “node -v” and paste the output here?

Regards,
Manos


#3

Hi Manos,

Thank you for your answer.

This is the output:

v7.10.1

Kind regards,

Carlos


#4

Hi Carlos,

Could you try the following?

nvm install 7.5
nvm alias default 7.5

And then try the npm install again?

Regards,
Manos


#5

Hi Manos,

I still have the same output:

npm ERR! Linux 4.4.0-93-generic
npm ERR! argv “/home/silvia/.nvm/versions/node/v7.5.0/bin/node” “/home/silvia/.nvm/versions/node/v7.5.0/bin/npm” “install”
npm ERR! node v7.5.0
npm ERR! npm v4.1.2

npm ERR! No version provided
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /home/silvia/NRP/gzweb/npm-debug.log

Kind regards,

Carlos


#6

Hi Carlos,

Could you paste the contents of the file /home/silvia/NRP/gzweb/npm-debug.log

Also, could you paste the contents of $NRP/gzweb/package.json

Regards,
Manos


#7

Hi Manos,

The contents of the file /home/silvia/NRP/gzweb/npm-debug.log and $NRP/gzweb/package.json can be found here (the size of the text was too large, sorry for the inconvenience):

https://we.tl/P2jfDMv2Nc

Kind regards,

Carlos


#8

Hi Carlos,

Could you tru to rm -rf node_modules

And then do the npm install again?

Regards,
Manos


#9

Hi Manos,

There is no node_modules in the $NRP/gzweb directory only in the home directory. The npm install still does not work.

Kind regards,
Carlos


#10

Hi Carlos,

This is weird I must admit, I will try to have another developer take a look at the problem.

Regards,
Manos