Reputation: 21
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
Upvotes: 2
Views: 22219
Reputation: 11
I faced the same problem and finally I was able to solve the exact above error by doing the following steps:-
npm -g install npm@<version>
This step is important as npm is getting installed globally here.npm install -g @angular/[email protected]
which worked fine after these changesUpvotes: 1
Reputation: 623
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.
Upvotes: 1