Commit 8135749 1 parent 3c2b829 commit 8135749 Copy full SHA for 8135749
File tree 1 file changed +2
-4
lines changed
packages/dev/repl/SimplePackageInstaller
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ export default class SimplePackageInstaller implements PackageInstaller {
59
59
return cacheEntry ;
60
60
}
61
61
62
- const res = await fetch ( `https://registry.npmjs.cf /${ name } ` , {
62
+ const res = await fetch ( `https://registry.npmjs.org /${ name } ` , {
63
63
headers : {
64
64
Accept : 'application/vnd.npm.install-v1+json' ,
65
65
Origin : 'repl.parceljs.org' ,
@@ -105,9 +105,7 @@ export default class SimplePackageInstaller implements PackageInstaller {
105
105
return cacheEntry ;
106
106
}
107
107
108
- const res = await fetch (
109
- tarball . replace ( 'registry.npmjs.org' , 'registry.npmjs.cf' ) ,
110
- ) ;
108
+ const res = await fetch ( tarball ) ;
111
109
if ( ! res . ok ) {
112
110
throw new Error ( `npmFetch failed: fetching ${ tarball } - ${ res . status } ` ) ;
113
111
}
You can’t perform that action at this time.
0 commit comments