0

我正在关注有关创建反应应用程序的 NX 教程(此处),但出现错误:

✔︎ tracking-platform (master) ✗ npm run nx -- generate 
@nrwl/react:application todos

> tracking-platform@0.0.0 nx /home/kklimczak/workspace/tracking-platform
> nx "generate" "@nrwl/react:application" "todos"

? In which directory should the application be generated? 
? Which stylesheet format would you like to use? CSS
? Would you like to configure routing for this application? No
/bin/sh: 1: yarn: not found
Package install failed, see above.

我使用带有节点 v10.15.3 和 npm 6.10.1 的 Ubuntu 19.04。你知道这个配置有什么问题吗?

4

1 回答 1

0

看起来你需要安装纱线

您可以通过添加在构建脚本中包含纱线的安装

npm install yarn
于 2019-08-09T21:21:30.377 回答