React-Admin:`make`命令失败

问题描述 投票:1回答:1

克隆react-admin存储库后,我正在尝试使本地环境正常工作。我试图按照文档的指导运行make installmake build,但这些对我不起作用。

我全局安装make。并且yarnnpmnodejs都是最新的。我在Windows-10上使用Visual Studio Code和PowerShell终端。这就是我得到的...

make install返回:

make i info Invoking install target
(node:7316) UnhandledPromiseRejectionWarning: undefined
(node:7316) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:7316) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
make × ERR  not found: make-package.json

make build返回:

(node:9000) UnhandledPromiseRejectionWarning: undefined
(node:9000) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:9000) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
make × ERR  not found: make-##

我真的很想开始我的ra fix branch,所以将不胜感激。希望这只是我的一个简单错误。

node.js windows makefile react-admin
1个回答
0
投票

有趣的是,make主要是unix env的实用工具。因此,在make环境中运行windows命令不是直接过程。

NMAKE是Windows的官方替代产品,它将帮助您实现相同的目标。

© www.soinside.com 2019 - 2024. All rights reserved.