npm ERR! request to https://registry.npmjs.org/node-modules failed, reason: error:0906D06C:PEM routines:PEM_read_bio:no start line
15,727
I think that first you need to start prompt as an administrator, then run npm cache clean -f
then try to run npm install
, by this command the npm will install the packages listed in package.json.
Or
You can run npm config set registry http://registry.npmjs.org/
so you can run npm install -g node-modules
. Read more in this answer.
Author by
Mustabshir Khan
Updated on June 04, 2022Comments
-
Mustabshir Khan almost 2 years
I am getting this error while installing any JS package , I have done lots of search but no luck. So please let me know where i am making mistake.
npm ERR! request to https://registry.npmjs.org/node-modules failed, reason: error:0906D06C:PEM routines:PEM_read_bio:no start line
WebServer : Apache2(xampp)
Node : v9.3.0
NPM : 5.5.1-
Fernando Paz about 6 yearsHow are you trying to install the packages? Can you post an example about any package that you tried to install?
-
Mustabshir Khan about 6 years$ npm install -g node-modules any thing wrong with it ?
-