The attempt to access https://registry.npmjs.org/yargs was unsuccessful

I am experiencing difficulties in downloading packages from npm. When attempting to download from https://registry.npmjs.org/yargs, I am receiving an error message that states: write EPROTO 101057795:error:14077419:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert access denied:openssl\ssl\s23_clnt.c:802. Below is the full log file:

0 info it worked if it ends with 
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm- 
cli.js',
1 verbose cli   'install',
1 verbose cli   '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="bac3dbc8ddc9fa8e9482948b">[email protected]</a>',
1 verbose cli   '--save' ]
2 info using <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="89e7f9e4c9bca7bfa7b9">[email protected]</a>
3 info using <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9cf2f3f8f9dceaa4b2adadb2ad">[email protected]</a>
4 verbose npm-session 0a37c58aac4a7e6c
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData error for <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a0d9c1d2c7d3e0948e988e91">[email protected]</a> request to 
https://registry.npmjs.org/yargs failed, reason: write EPROTO 
101057795:error:14077419:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert 
access denied:openssl\ssl\s23_clnt.c:802:
8 verbose type system
9 verbose stack FetchError: request to https://registry.npmjs.org/yargs 
failed, reason: write EPROTO 101057795:error:14077419:SSL 
routines:SSL23_GET_SERVER_HELLO:tlsv1 alert access 
denied:openssl\ssl\s23_clnt.c:802:
9 verbose stack
9 verbose stack     at ClientRequest.req.on.err (C:\Program 
Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch- 
happen\node_modules\node-fetch-npm\src\index.js:68:14)
9 verbose stack     at emitOne (events.js:116:13)
9 verbose stack     at ClientRequest.emit (events.js:211:7)
9 verbose stack     at TLSSocket.socketErrorListener (_http_client.js:387:9)
9 verbose stack     at emitOne (events.js:116:13)
9 verbose stack     at TLSSocket.emit (events.js:211:7)
9 verbose stack     at onwriteError (_stream_writable.js:418:12)
9 verbose stack     at onwrite (_stream_writable.js:440:5)
9 verbose stack     at _destroy (internal/streams/destroy.js:39:7)
9 verbose stack     at TLSSocket.Socket._destroy (net.js:574:3)
9 verbose stack     at TLSSocket.destroy (internal/streams/destroy.js:32:8)
9 verbose stack     at WriteWrap.afterWrite [as oncomplete] (net.js:882:10)
10 verbose cwd D:\Projects\Weather-App
11 verbose Windows_NT 10.0.16299
12 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program 
Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c5bca4b7a2b685f1ebfdebf4">[email protected]</a>" 
"--save"
13 verbose node v8.11.1
14 verbose npm  v5.6.0
15 error code EPROTO
16 error errno EPROTO
17 error request to https://registry.npmjs.org/yargs failed, reason: write 
EPROTO 101057795:error:14077419:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 
alert access denied:openssl\ssl\s23_clnt.c:802:
18 verbose exit [ 1, true ]

Answer №1

Experiencing the exact same issue here

npm ERR! request to https://registry.npmjs.org/clsx failed, reason: write EPROTO...

However, after executing

npm install -g npm

The error was resolved and no longer persisted

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Tips for updating data within an array using a copied object

Just starting out with JavaScript Could you assist me with a basic inquiry, please? For instance, I have an array like this: const array = [{ id: 1, name: 'Ferrari', type: 'F40', price: '350 000$', countr ...

Dropdown menu utilizing processing API and interacting with AJAX and DOM manipulation

My API data is not showing up in the dropdown menu. If I use ?act=showprovince, I can see the result. example.html <head> <link rel="stylesheet" type="text/css" href="css/normalize.css"> <link rel="stylesheet" type="text/css" hr ...

Session storage startup failed due to parsing issues (ERROR 500)

Upon cloning the project and running it after installing npm install, an Adonis application returns this error message. Interestingly, the same project works on another MacBook Pro, but when I try to run it on my own MacBook Pro, it gives me a 500 error. ...

Using AJAX to populate a dropdown menu in a CodeIgniter application

I'm having an issue with using AJAX to populate a dropdown option. Here is the JavaScript code I am using: <script type="text/javascript"> $(document).ready(function(){ $("#sepatu").click(function(e){ e.preventDefault() ...

I followed the step to download Angular using NPM Install

When attempting to work on a repository that uses Angular without having it installed on my machine, I ran npm i. However, Angular was not automatically installed. So, I had to separately install the Angular CLI before running ng serve --open ...

Issue encountered: Framer Motion animation is not functioning properly on elements that are rendered using the map()

I'm attempting to create an animation similar to this: https://drive.google.com/file/d/1WQCg7j49xd5XfuaYuC2YFQCUU-UXassp/view?usp=sharing Here's the code I have: <motion.div layout className="grid grid-cols-2 md:grid-cols-3 gap-8 py-10&q ...

Retrieve JSON data and use a button to sort and display markers on a Google Map

Is it possible to modify my function in order to use different PHP files with separate buttons without duplicating the code? Currently, I have a function that displays markers on an external HTML page when a button is clicked. The data is retrieved from fi ...

What is the best way to retrieve the canonicalized minimum and maximum values within the beforeShow method of jQuery UI's datepicker?

I have a pair of datepicker elements that I want to function as a range. When a value is set in the "low" datepicker, it should adjust the minDate and yearRange in the other datepicker, and vice versa with the "high" datepicker. The challenge I'm faci ...

Searching and replacing query strings in a URL using JQuery according to the chosen option in an HTML dropdown menu

Is there a way to use jQuery to dynamically change a specific value in the query string by finding and replacing that value based on the selection made from a dropdown menu on the webpage? For example: Imagine we have this query string on the current page ...

<use> - SVG: Circles with different stroke properties

Why is the stroke of both <use> elements being ignored here? The stroke color of <circle> is set to blue, which is also appearing on both <use> elements. Why? I am trying to set different stroke colors for all three of these elements, bu ...

Transfer content within <pre> tags to the clipboard using a Vue.js application

I am currently developing a Chrome extension using Vue.js where I aim to copy the content within a pre tag section to the clipboard with the click of a button. By assigning an element ID to the pre tag, I can retrieve the content using a copyToClipboard() ...

What is the duration that browsers retain downloaded assets during a single session?

Is it necessary to preload data from the server in order to have immediate access when needed? The data is stored in a file named "data.json". Initially, I considered storing data.json in an object and referencing it whenever required. However, given tha ...

Unable to utilize external JavaScript files in Angular 8

I've been working on integrating an HTML template into my Angular project and for the most part, everything is going smoothly. However, I've encountered an issue where my JS plugins are not loading properly. I have double-checked the file paths i ...

Retrieving all rows from a table using Laravel API and Vue.js

<template> <div class="container"> <div class="row mt-5 mb-3"> <div class="col-md-10"> <h3>Gallery</h3> </div> <div class="col-md-2"> <button class="btn btn-success" ...

Tips for effectively crafting a component capable of managing both a value and an observable for that specific value

I'm actually curious about two things. When is it appropriate to pass an observable of an object into a component versus resolving it with the | async method? If I want to create a versatile reusable component that can handle both scenarios - accept ...

The issue with Express connect-flash only showing after a page refresh instead of instantly displaying on the same page needs to be addressed

Here is the registration route code snippet: router.post("/register", function(req, res){ var newUser = new User({username: req.body.username}); User.register(newUser, req.body.password, function(error, user){ if(error){ req.fl ...

"Error: Vue prop is not defined when passed to computed functions during initial call

I am encountering an issue with my Vue component. Here is the code for reference: Vue.component('result', { props: ['stuff'], data: () => ({}), template: "<img :src='tag' class='result'></img>", ...

Enabling and disabling contenteditable functionality on a div element in Angular

Issue I am facing an issue while trying to bind a boolean to the contenteditable directive of a div. However, it seems that this binding is not working as expected. Error Message: The 'contenteditable' property is not recognized as a valid p ...

Utilizing Typescript for parsing large JSON files

I have encountered an issue while trying to parse/process a large 25 MB JSON file using Typescript. It seems that the code I have written is taking too long (and sometimes even timing out). I am not sure why this is happening or if there is a more efficien ...

Issue with ThreeJs raycaster not returning correct event.clientY value when header bar is visible

Here's the issue: I'm trying to place a sphere on a 3D model when I click on it using ThreeJs raycaster. It works fine when the canvas covers the entire page, but if I add a header bar to the page, the positioning is off. Here are some visual ex ...