Notes From a Full-Stack Developer

Kevin Raffay's WordPress Blog

NPM Firewall Issue

leave a comment »

I recently came across an issue when trying to install json-server, a REST API mock tool.  I am using this library temporarily so that I can focus on Angular 4 development, and it serves the purpose of getting a fake back-end running quickly until I get my Web API tier working.

When running “npm install json-server –save”, I got a bunch of npm errors:

npm ERR! Windows_NT 6.3.9600

npm ERR! argv "G:\\Program Files\\nodejs\\node.exe" "G:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "json-server" "-- save"

npm ERR! node v6.11.1 npm

ERR! npm v3.10.10 npm


Usually, this would lead me to StackOverflow, but the answer was buried in a node.js thread on github.  I was behind my company firewall, and fortunately I did not have to deal with some SSL certificate, which is what some of the answers on the internet alluded to.  All it took was one command:

npm config set strict-ssl false

h/t Yehor Sergeenko


Written by Kevin Raffay

August 2, 2017 at 5:49 pm

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: