humanmade / humanmade/react-wp-scripts

Install fails

未关闭
#90 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
232
派生
30
PR 合并指标
30 天内没有已合并 PR

描述

Following the guidelines on the readme, running (node 16):

```
npx create-react-app dashboard --scripts-version react-wp-scripts --php-namespace="Dashboard" ./
```

I get this error:

```
dashboard % npx create-react-app dashboard --scripts-version react-wp-scripts --php-namespace="Dashboard" ./
Need to install the following packages:
create-react-app
Ok to proceed? (y)
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

Creating a new React app in /Users/joe/altis/vantage-backend/content/themes/dashboard/dashboard.

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

added 1743 packages in 39s

73 packages are looking for funding
run `npm fund` for details
Could not locate supplied template: /Users/joe/altis/vantage-backend/content/themes/dashboard/cra-template
React WP Scripts loader could not be copied to your root folder. Error details:
Error: ENOENT: no such file or directory, open '/Users/joe/altis/vantage-backend/content/themes/dashboard/dashboard/src/index.js'
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。