我正在尝试安装create-react-app,但无法正常工作
SPECIAL_LIB_32= .../libs/i386/library.dll
SPECIAL_LIB_64= .../libs/x64/library.dll
## check if 64-bit somehow
ifeq ($(strip $(OS)), "64bit machine")
LIBS=-L{SPECIAL_LIB_32
endif
## check 32-bit
ifeq ($(strip $(OS)), "32bit machine")
LIBS=-L{SPECIAL_LIB_64
endif
我收到此错误。
我尝试了$ npm install create-react-app
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/create-react-app failed, reason: connect ECONNREFUSED 127.0.0.1:8080
npm ERR! at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at onerror (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5)
npm ERR! FetchError: request to https://registry.npmjs.org/create-react-app failed, reason: connect ECONNREFUSED 127.0.0.1:8080
npm ERR! at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
npm ERR! at ClientRequest.emit (events.js:315:20)
npm ERR! at onerror (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:101:9)
npm ERR! at callbackError (C:\Program Files\nodejs\node_modules\npm\node_modules\agent-base\index.js:123:5)
npm ERR! at processTicksAndRejections (internal/process/task_queues.js:97:5) {
npm ERR! type: 'system',
npm ERR! errno: 'ECONNREFUSED',
npm ERR! code: 'ECONNREFUSED'
npm ERR! }
npm ERR!
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\LENOVO\AppData\Roaming\npm-cache\_logs\2020-08-30T19_12_06_047Z-debug.log
,但没有任何反应
当我尝试使用npm cache clean --force
时,我会出现此错误
npm init react-app my-app
请任何人帮助。
答案 0 :(得分:0)
使用以下命令创建React App;
npx create-react-app my-app
npm init react-app my-app
yarn create react-app my-app
尝试使用此方法来修复您的代理
npm config set proxy null
npm config set https-proxy null
npm config set registry http://registry.npmjs.org/