我正在关注有关创建React应用的NX教程(here),但出现错误:
✔︎ 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.
我将Ubuntu 19.04与节点v10.15.3和npm 6.10.1结合使用。您知道此配置有什么问题吗?
答案 0 :(得分:0)
看起来您需要安装纱线
您可以通过添加
在您的构建脚本中包含yarn的安装npm install yarn