简体   繁体   English

npx create-react-app 客户端给出此错误“无法读取未定义的属性(读取'isServer')”

[英]npx create-react-app client gives this error "Cannot read properties of undefined (reading 'isServer')"

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\priyesh\AppData\Local\npm-cache\_logs\2021-10-09T13_17_00_252Z-debug.log

Aborting installation.
  npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... node_modules
Deleting generated file... package.json
Deleting client/ from C:\work\blog
Done.

This error simply shows difference between version of global packages..update windows, npm, node remove cached memory in node.此错误仅显示全局包版本之间的差异..update windows, npm, node remove cached memory in node. sometime reconnect to internet will help in this error..有时重新连接到互联网将有助于解决此错误..

我在节点 16.0.0 上遇到了同样的错误 - 使用当前最新的 16.13.2 它可以工作

I am also facing similar issue when run ng new app运行 ng new app 时我也面临类似的问题

\ Installing packages (npm)...npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')
npm ERR! Cannot read properties of undefined (reading 'isServer')

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\USER\AppData\Local\npm-cache\_logs\2021-11-15T15_33_04_241Z-debug.log
× Package install failed, see above.
The Schematic workflow failed. See above.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 create-react-app 错误无法解决:Uncaught TypeError: Cannot read properties of undefined (reading 'pathname') - create-react-app errors not able to solve: Uncaught TypeError: Cannot read properties of undefined (reading 'pathname') npx create-react-app 在运行 npm 启动时出错 - npx create-react-app gives error when running npm start 错误:在 npx create-react-app 运行期间产生 UNKNOWN - Error: spawn UNKNOWN during npx create-react-app run 意外的令牌'&lt;'错误(npx create-react-app) - Unexpected token '<' Error (npx create-react-app) 运行 npx create-react-app 时遇到错误 - Facing error while running npx create-react-app TypeError:无法读取未定义(读取“过滤器”)和未定义错误的属性 - React - TypeError: Cannot read properties of undefined (reading 'filter') and undefined error - React 反应问题无法在测验应用程序中读取未定义的属性(读取“地图”)? - React problem Cannot read properties of undefined (reading 'map') in a quiz app? TypeError:无法读取未定义的属性(读取“原型”)React APP - TypeError: Cannot read properties of undefined (reading 'prototype') React APP 无法使用部署在 Heroku 上的 React App 读取未定义的属性(读取“findOne”) - Cannot read properties of undefined (reading 'findOne') with React App deployed on Heroku discord.js 错误:无法读取未定义的属性(读取“客户端”) - discord.js error: Cannot read properties of undefined (reading 'client')
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM