- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
尝试使用 npx create-react-app 评估为 react 应用程序创建样板
D:\React>create-react-app assessment
Creating a new React app in D:\React\assessment.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
[ ........] | reify:color-convert: timing reifyNode:node_modules/jest-validate/node_modules/color-convert Comp
#
# Fatal error in , line 0
# Fatal process out of memory: Zone
#
#
#
#FailureMessage Object: 000000888EBFA4C0[ ........] / reify:color-convert: timing reifyNode:node_modules/jest-s[ ........] / reify:color-convert: timing reifyNode:node_modules/jest-snapshot/node_modules/color-convert Comp
<--- Last few GCs --->
[7756:000001A77FCE9290] 304467 ms: Scavenge 239.7 (274.6) -> 239.1 (274.6) MB, 2.8 / 0.0 ms (average mu = 0.996, current mu = 0.999) allocation failure
[7756:000001A77FCE9290] 306201 ms: Scavenge 239.8 (274.6) -> 239.3 (274.6) MB, 186.4 / 181.9 ms (average mu = 0.996, current mu = 0.999) allocation failure
[7756:000001A77FCE9290] 307086 ms: Scavenge 240.1 (274.6) -> 239.6 (274.6) MB, 3.9 / 0.1 ms (average mu = 0.996, current mu = 0.999) allocation failure
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 00007FF647760366]
1: StubFrame [pc: 00007FF647761333]
2: StubFrame [pc: 00007FF647732BAD]
Security context: 0x0364ad71a299 <JSObject>
3: replace [00000364AD709699](this=0x03c776effa81 <String[175]\: [\x1b[7m \x1b[27m\x1b[90m........\x1b[0m] / reify:color-convert: \x1b[32;40mtiming\x1b[0m \x1b[35mreifyNode:node_modules/jest-snapshot/node_modules/color-convert\x1b[0m Completed in 194645ms>,0x03b334...
FATAL ERROR: Committing semi space failed. Allocation failed - JavaScript heap out of memory
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 assessment/ from D:\React
上面的痕迹来自 CMD,也尝试过使用管理员权限,但仍然是同样的问题。
npm clean cache --force
清理 NPM 缓存但问题依然存在,
最佳答案
This answer看起来它可能是相关的。
不过,如果可能的话,我建议您先将您的 NodeJS 版本升级到最新的 12.x 或最高 14.x。
您还需要确保获得最新的 create-react-app
因为问题可能出在 NodeJS
的旧版本上与 create-react-app
冲突.
在您更新内容后,我会使用 npx create-react-app assessments
来自 create-react-app
guide创建您的应用程序以查看进展情况。
关于javascript - npx create-react-app fatal error : JavaScript heap out of memory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68423739/
我熟悉 node_modules/.bin和 npx工具。 我最近注意到我们的一个配置运行: npx prettier@2 这实际上产生不同的输出 npx prettier 当以这种方式调用时,似乎更
我想将旧的 Firestore 集合数据同步到 algolia。我已按照提供的文档进行操作,但遇到了 npx 问题。如果有人能帮助我,那就意义重大。这是使用 PowerShell 终端时得到的输出 /
我想将旧的 Firestore 集合数据同步到 algolia。我已按照提供的文档进行操作,但遇到了 npx 问题。如果有人能帮助我,那就意义重大。这是使用 PowerShell 终端时得到的输出 /
我正在尝试使用 npx 命令创建一个 React 应用程序,如下所示 npx create-react-app my-app 但这给了我一个错误 'CALL "C:\Program Files\nod
我是电容器的新手,正在开发一个应用程序,我正在对代码进行更改并运行 ionic 构建 npx上限副本 npx盖帽开安卓 并且还推荐使用 npx cap sync代npx cap copy . 两者之间
我正在使用 Node.js 10.1.0 和 npm 6.0.0。 我已经用 npm install -g example-package 安装了一个包, npx 会寻找它吗? npx -p exam
我在 javascript 项目中有一个构建脚本,它使用 parcel 遍历文件夹并查找索引文件,然后构建这些项目。当我找到一个索引文件时,我运行这个命令: npx parcel build ${in
我正在尝试使用 npx 执行作用域包。似乎唯一的方法是直接指定包,例如: npx -p @foo/bar bar 哪个会正确下载@foo/bar并运行 bar我的条目 package.json “bi
当前使用 npx 作为 npm 全局安装的软件包的解决方法,因为尽管尝试导出到正确的路径,但永远找不到命令。 npx 可以查找命令,但每次都必须重新安装软件包才能找到它,这意味着同一软件包的多次使用会
我正在尝试测试自定义 Webpack 配置。我读过,我可以使用 npx webpack 而不是键入 node ./node_modules/webpack/bin/webpack.js。但我似乎无法让
正在关注这个article运行命令 npm install --dev hardhat @nomicfoundation/hardhat-toolbox 得到成功响应。但是,当我尝试运行 npx ha
当我成功安装 create-react-native-app 而没有出现错误时,会出现此警告,当我键入该警告时,终端会给我这样的错误或警告:遇到意外错误。请将其报告为错误: 有没有人得到这个错误代码或
我想在我大学的服务器上准备我的网站的配置。 我有以下问题:npx sequelize 不起作用,因为 sequelize 未全局安装并且无法安装包(我没有合适的权限)。 有没有办法在本地使用seque
我得到了一些 npx create-react-app命令卡住而在终端上没有显示任何错误。所以,我需要运行 npx在 Debug模式 . 有没有办法获得 调试 记录 npx 命令以识别问题? 编辑:
今天我使用 CRA 创建了一个 reactjs 起始模板: npx create-react-app my-app --template redux 这在我的项目中创建了两个文件:package.js
(注意:我在这里使用 cowsay 模块来说明我的观点) 无需在我的计算机上安装模块,我可以直接通过 npx 运行它: npx cowsay Hello! 如果我在 package.json 中指定了
我正在通过此链接关注 webpack 的基本教程:https://webpack.js.org/guides/getting-started/ 当我运行 npx webpack 时,它失败并出现以下错
我正在使用 webpack,我需要使用 npx 执行 ./node_modules/webpack/bin/webpack.js。 npx webpack 会运行 webpack 二进制文件(./no
我刚刚开始学习 React,Facebook 通过提供 following ready-made project 来帮助简化初始设置. 如果我必须安装骨架项目,我必须输入 npx create-rea
我有一个正在使用的项目yarn为了。我已经使用 yarn 安装了我的所有软件包, 我运行 yarn dev等等。现在我正在学习一个要求我使用 npx 的教程。设置一个包。 - 我想知道我是否可以继续这
我是一名优秀的程序员,十分优秀!