我试图安装reactjs有npm,并用我的电脑在无代理环境。但是每当我使用npm install命令时都会出现以下错误。我对此进行了很多搜索,但没有找到任何解决方案。请帮忙
npm install webpack webpack-dev-server --save-dev
Run Code Online (Sandbox Code Playgroud)
错误是:
> npm ERR! code ECONNREFUSED
> npm ERR! errno ECONNREFUSED
> npm ERR! FetchError: request to http://registry.npmjs.org/webpack-dev-server failed, reason: connect
> ECONNREFUSED 127.0.0.1:8000
> npm ERR! at ClientRequest.req.on.err (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
> npm ERR! at ClientRequest.emit (events.js:188:13)
> npm ERR! at Socket.socketErrorListener (_http_client.js:399:9)
> npm ERR! at Socket.emit (events.js:188:13)
> npm ERR! at emitErrorNT (internal/streams/destroy.js:82:8)
> npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
> npm ERR! at process.internalTickCallback (internal/process/next_tick.js:72:19) …Run Code Online (Sandbox Code Playgroud)