antfu-collective / vitesse-webext

⚡️ WebExtension Vite Starter Template
MIT License
2.92k stars 225 forks source link

After pnpm install, it reports an error #101

Closed king-open closed 2 years ago

king-open commented 2 years ago

Describe the bug

 ERR_STREAM_PREMATURE_CLOSE  Premature close

Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
    at new NodeError (internal/errors.js:322:7)
    at IncomingMessage.onclose (internal/streams/end-of-stream.js:117:38)
    at IncomingMessage.emit (events.js:400:28)
    at TLSSocket.socketCloseListener (_http_client.js:432:11)
    at TLSSocket.emit (events.js:412:35)
    at net.js:686:12
    at TCP.done (_tls_wrap.js:564:7)

Reproduction

null

System Info

MacOS 
Chrome 
`pnpm install`

Used Package Manager

pnpm

Validations

tmkx commented 2 years ago

try to replace npm registry with https://npmmirror.com/

king-open commented 2 years ago

I'll try

king-open commented 2 years ago

But using npm install is so slow

king-open commented 2 years ago

Solved, thanks

tmkx commented 2 years ago

You can add this to your project .npmrc file, npm/pnpm will use it for this project:

registry = https://registry.npmmirror.com
king-open commented 2 years ago

My default mirror is this one