Error while i am installing Spectrometer Web
Jayathirth, Pramod Raghavendra <pramod.raghavendra.jayathirth@...>
Hi All,
I am following the Below documentation for setting up the spectrometer?
https://opendaylight-spectrometer.readthedocs.io/en/latest/quickstart.html#testing-the-setup
While I try to run “npm start” in the spectrometer-web part, I am getting the following error. It might be due to proxy. I am not able to get past ahead of this step.
Has anyone faced this or can point me on how to debug and fix this?
The Error is :
pramod@pramod-odl:~/spectrometer/spectrometer/web$ sudo npm install babel-register [sudo] password for pramod: npm WARN package.json opendaylight-spectrometer-web@0.0.1 No README data npm http GET https://registry.npmjs.org/babel-register npm http GET https://registry.npmjs.org/babel-register npm http GET https://registry.npmjs.org/babel-register npm ERR! network connect ETIMEDOUT npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! System Linux 3.16.0-30-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "babel-register" npm ERR! cwd /home/pramod/spectrometer/spectrometer/web npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! syscall connect npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pramod/spectrometer/spectrometer/web/npm-debug.log npm ERR! not ok code 0
Regards, Pramod Raghavendra Jayathirth
|
|
Jayathirth, Pramod Raghavendra <pramod.raghavendra.jayathirth@...>
The error when I give “npm start” is as below
pramod@pramod-odl:~/spectrometer/spectrometer/web$ npm start
> opendaylight-spectrometer-web@0.0.1 start /home/pramod/spectrometer/spectrometer/web > export NODE_ENV=development && node src/server/index.js --progress --colors --profile
module.js:340 throw err; ^ Error: Cannot find module 'babel-register' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/home/pramod/spectrometer/spectrometer/web/src/server/index.js:21:1) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) npm ERR! weird error 8 npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian
Regards, Pramod Raghavendra Jayathirth
From: Jayathirth, Pramod Raghavendra
Hi All,
I am following the Below documentation for setting up the spectrometer?
https://opendaylight-spectrometer.readthedocs.io/en/latest/quickstart.html#testing-the-setup
While I try to run “npm start” in the spectrometer-web part, I am getting the following error. It might be due to proxy. I am not able to get past ahead of this step.
Has anyone faced this or can point me on how to debug and fix this?
The Error is :
pramod@pramod-odl:~/spectrometer/spectrometer/web$ sudo npm install babel-register [sudo] password for pramod: npm WARN package.json opendaylight-spectrometer-web@0.0.1 No README data npm http GET https://registry.npmjs.org/babel-register npm http GET https://registry.npmjs.org/babel-register npm http GET https://registry.npmjs.org/babel-register npm ERR! network connect ETIMEDOUT npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! System Linux 3.16.0-30-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "babel-register" npm ERR! cwd /home/pramod/spectrometer/spectrometer/web npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! syscall connect npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pramod/spectrometer/spectrometer/web/npm-debug.log npm ERR! not ok code 0
Regards, Pramod Raghavendra Jayathirth
|
|
Raghuram Vadapalli <raghuram.4350@...>
Try running npm install without sudo Regards, Raghuram
On 17-Mar-2017 5:16 AM, "Jayathirth, Pramod Raghavendra" <pramod.raghavendra.jayathirth@...> wrote:
|
|
Jayathirth, Pramod Raghavendra <pramod.raghavendra.jayathirth@...>
HI Raghuram,
Thanks for the reply. I tried “npm install” without sudo. I am getting the following error. Do you think it might be due to proxy?
npm http GET https://registry.npmjs.org/webpack npm ERR! network connect ETIMEDOUT npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! System Linux 3.16.0-30-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm ERR! cwd /home/pramod/spectrometer/spectrometer/web npm ERR! node -v v0.10.25 npm ERR! npm -v 1.3.10 npm ERR! syscall connect npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm http GET https://registry.npmjs.org/webpack-hot-middleware npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/pramod/spectrometer/spectrometer/web/npm-debug.log npm ERR! not ok code 0
Regards, Pramod Raghavendra Jayathirth
From: Raghuram Vadapalli [mailto:raghuram.4350@...]
Try running npm install without sudo
Regards, Raghuram
On 17-Mar-2017 5:16 AM, "Jayathirth, Pramod Raghavendra" <pramod.raghavendra.jayathirth@...> wrote:
|
|
Vasu Srinivasan <vasya10@...>
Pramod, I see that you are using NodeJS 0.10.x. Your npm is also old (1.3.x), while current is 4.x. This is probably from an existing nodejs in your system. The NPM is old too. My recommendation is to uninstall nodejs fully and then install using NVM (Node Version Manager), which lets you switch between node versions very easily. To completely uninstall nodejs do the following: Follow the first answer from this link: https://www.quora.com/How-do-I-completely-uninstall-NodeJs-and-re-install-the-latest-version-of-NodeJs Then try: node -v, npm -v commands. Both should return errors. Then goto https://github.com/creationix/nvm and install the latest nvm version using this command: Restart your terminal. For spectrometer you'll need 6.9.x version. So execute nvm install v6.9.4. This will install the node 6.9.4 and npm. Regards, Vasu Srinivasan ----------------------------------- vagartham.wordpress.com vasya10.wordpress.com
On Mon, Mar 20, 2017 at 5:51 PM, Jayathirth, Pramod Raghavendra <pramod.raghavendra.jayathirth@...> wrote:
|
|
Jayathirth, Pramod Raghavendra <pramod.raghavendra.jayathirth@...>
Hi Vasu,
Thanks a lot. It did work and I am able to get the client and server up now. J
Regards, Pramod Raghavendra Jayathirth
From: Vasu Srinivasan [mailto:vasya10@...]
Pramod,
I see that you are using NodeJS 0.10.x. Your npm is also old (1.3.x), while current is 4.x. This is probably from an existing nodejs in your system. The NPM is old too. My recommendation is to uninstall nodejs fully and then install using NVM (Node Version Manager), which lets you switch between node versions very easily.
To completely uninstall nodejs do the following:
Follow the first answer from this link: https://www.quora.com/How-do-I-completely-uninstall-NodeJs-and-re-install-the-latest-version-of-NodeJs
Then try: node -v, npm -v commands. Both should return errors.
Then goto https://github.com/creationix/nvm
and install the latest nvm version using this command:
Restart your terminal.
For spectrometer you'll need 6.9.x version. So execute nvm install v6.9.4. This will install the node 6.9.4 and npm.
Regards,
On Mon, Mar 20, 2017 at 5:51 PM, Jayathirth, Pramod Raghavendra <pramod.raghavendra.jayathirth@...> wrote:
|
|