我使用npx create- react -app创建了一个小的react项目来处理一些react教程,但我无法启动react应用程序。这是我在尝试运行项目时遇到的错误:
> test-app@0.1.0 start C:\Users\pcname\Documents\React R&D\Pluralsight\test-app
> react-scripts start
'D\Pluralsight\test-app\node_modules\.bin\' is not recognized as an internal or external comm
我已经使用create- react -app命令创建了react应用程序,但该应用程序没有启动,例外情况是 `Client\web_client\node_modules\.bin\' is not recognized as an internal or external command,
operable program or batch file.
internal/modules/cjs/loader.js:983
throw err;
^
Error: Cannot find module 'E:\react-scripts\bin\react-scri
我有一个创建反应应用程序,可以在我的Windows 10工作站上运行节点v12.19.0和NPMv6.14.8。我已经能够运行npm start和npm run build,并且能够很好地访问应用程序。
当我试图将相同的代码部署到DigitalOcean的App平台和Ubuntu微滴上时,我无法让这个应用程序启动。当我运行npm run build时,我会得到下面的错误
我想这可能是因为我在Windows上开发了这个应用程序,我的项目中的一些文件夹可能引起了问题。为了测试这一点,我再次使用了create-react-app,并能够在Ubuntu中运行股票应用程序。然后,我将我的src和pu
我有一个原始的问题,我试着去解决,然后又遇到了另一个问题。
1. ORIGONAL问题我刚刚尝试使用create- react app安装一个新的react应用程序,并且首先得到了这个错误。
Please note that global installs of create-react-app are no longer supported.
已安装节点模块,但没有安装正常安装的其他文件或目录。
2.我在react网站it 上修复Origonal问题的方法有人建议我做以下工作(我做了)
“如果您以前通过npm安装-g创建反应应用在全球范围内安装了创建-反应-应用程序,我们建议您使用npm卸载
在尝试使用create- react -app模块创建react应用程序时,我遇到了一个非常奇怪的错误。在我的计算机上,很容易重新创建错误:
npx create-react-app test-project --typescript
这个项目运行得很好。但如果我删除node_modules文件夹并执行以下操作:
npm install
我得到了这个错误:
npm install
npm WARN deprecated flatten@1.0.2: I wrote this module a very long time ago; you should use something e
我曾经尝试过的类似问题 "npm-run-all" is not recognized as an internal or external command "'react-scripts' is not recognized as an internal or external command" 我试图通过create- React -app cli创建一个react项目,但在创建该项目后,我收到错误消息 'react-scripts' is not recognized as an internal or external
我不能创建一个新的应用程序使用创建-反应-应用程序。我使用的命令是npx create-react-app appname --template typescript。
我得到的错误是:
You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).
We no longer support global installation of Create React App
我用npm uninstall -g create-react-app删除了全局包。然后,我通过以下方法检查了已打包
我已经使用create- react -app创建了我的react应用程序,并尝试使用expo,但当我尝试使用expo build:android构建它时,它抛出了错误
Error: Can't find react-native in package.json dependencies
Error: React Native is not installed. Please run `npm install` in your project directory.
我是否需要从头开始一个react-native项目,或者有没有办法继续下去并发布这个项目?
最近,我用一个Node后端和一个使用create- React -app的react前端做了几个小项目。尽管我花了相当多的时间来研究文件夹结构的最佳实践,但在不弹出react应用程序的情况下,我无法提出一个令人满意的解决方案。我想知道是否有我还没有找到的解决方案。 我试图瞄准的文件夹结构如下所示: package.json
src/
client/
app.js
...
server/
index.js (node.js main file, could just as well be in server/) 这种布局允许我运行根文件夹中的所有脚本,并且
使用create- react -app创建了一个新的react应用程序,现在运行npm start时在终端中得到以下错误:
> react-scripts start
Attempting to bind to HOST environment variable: x86_64-apple-darwin13.4.0
If this was unintentional, check that you haven't mistakenly set it in your shell.
events.js:167
throw er; // Unhandled '
当我输入npx create-react-app ./命令来创建一个react时,它会发出以下警告,而不是创建该应用程序
Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app
The latest instructions for creating a new app can be found here:
https://create-react-app.dev