当我在Gitbash运行下面的命令时:
$ npm init @vitejs/app
我重述以下错误:
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
@vitejs/create-app is deprecated, use npm init vite instead
C:\Users\me\AppData\Local\npm-cache\_npx\9c7583f20b80c4d1\node_modules\@vitejs\create-app\in
我在启动服务器时遇到了一个问题...
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS C:\WINDOWS\system32> cd C:\Users\Smart-User^
PS C:\Users\Smart-User^> cd C:\Users\Smart-User^\Desktop\2q9\react\react-app
PS C:\User
我假设我应该能够将我的reactJS部署到亚马逊网络服务上的S3实例,但我不知道如何做到这一点。我在github上找到了publish-react-app,我正在尝试遵循这些步骤。当我执行npm run build时,我得到了这个错误流:
c:\jrs\PM_01\React>npm run build
npm ERR! missing script: build
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\jonat\AppData\Roaming\npm-cache\_logs
终端
npm start
> matchstatz@0.1.0 start C:\Users\07\OneDrive\Desktop\matchstatztask\matchstatz
> react-scripts start
There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.
The react-scripts package provid
我正在试着学习教程。我使用Emacs编辑index.js,当我编辑文件时(例如,添加一条换行符),即使没有保存文件,服务器也会立即崩溃,并得到如下输出:
/home/myname/Code/project/reactapp/node_modules/react-scripts/scripts/start.
js:19
throw err;
^
[Error: ENOENT: no such file or directory, stat '/home/myname/Code/project/r
eactapp/src/.#index.js'] {
errno: -
我试图跟随,以便在我的设备中安装reactJS,该设备有Ubuntu16.04。
最后,我尝试了npm start,但是它导致了以下错误
> reactjs@1.0.0 start /var/www/html/reactjs
> webpack-dev-server --hot
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
- configuration.output.path: