You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no check around pacote.extract in Registory.ts.
// If we've already downloaded this package, just return it.
if (!fs.existsSync(dest)) {
await pacote.extract(spec, dest, this.options);
}
The problem is that if pacote fails for some reason (apart from the user not knowing), the destination directory may be created which will prevent us from trying again.
I encountered this issue when the registry I was using redirected me to a mirror that wanted me to login. In this case there was an exception thrown. It would be good to report the error, and clean up the download directory in the error case.
The text was updated successfully, but these errors were encountered:
There is no check around
pacote.extract
inRegistory.ts
.The problem is that if
pacote
fails for some reason (apart from the user not knowing), the destination directory may be created which will prevent us from trying again.I encountered this issue when the registry I was using redirected me to a mirror that wanted me to login. In this case there was an exception thrown. It would be good to report the error, and clean up the download directory in the error case.
The text was updated successfully, but these errors were encountered: