Showing posts with label npm. Show all posts
Showing posts with label npm. Show all posts

Wednesday, May 13, 2020

Monday, April 16, 2018

Troubleshooting with nodejs and npm


I got error when I tried to install rasa-nlu-trainer
$npm i -g rasa-nlu-trainer

error:
npm http GET https://registry.npmjs.org/express
npm ERR! Error: SSL Error: CERT_UNTRUSTED
npm ERR!     at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\main.js:409:26)
npm ERR!     at ClientRequest.g (events.js:185:14)
npm ERR!     at ClientRequest.EventEmitter.emit (events.js:88:17)

solution:
You can bypass https using below commands:
npm config set strict-ssl false

reference:
https://stackoverflow.com/questions/21855035/ssl-error-cert-untrusted-while-using-npm-command


-----------------------------------------------------

To update nodejs and npm:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs



-----------------------------------------------------

"/usr/bin/env: node: No such file or directory"


solution:
ln -s /usr/bin/nodejs /usr/bin/node

Monday, March 19, 2018

Installing nodejs


curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs




updated:
I just installed nodejs and npm in a newly created vm.
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04



update: 7/30/2018
Alternatively, for Node.js 10:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - 
sudo apt-get install -y nodejs

free online comma separating tool

https://delim.co/#