首页 > 解决方案 > 我正在尝试建立一个反应开发环境,在纱线的某个地方出现错误

问题描述

我正在尝试建立一个反应开发环境,用纱线在某处获得错误亲属。

我已经安装了 Node.js

npm -v
6.14.4
node -v
v10.20.1

现在在我的公共 html 文件夹中,我创建了站点并安装了节点 js 包

纱线安装工作正常。

[edu2mfgitulstagi@st03 edu2mfg-clean-architecture]$ yarn install
yarn install v1.22.4

但是yarn cleanyarn build显示错误

[edu2mfgitulstagi@st03 server]$ yarn clean yarn run v1.22.4 $ npm-run-all clean:* /bin/sh: npm-run-all: command not found error Command failed with exit code 127. info 访问https:// /yarnpkg.com/en/docs/cli/run获取有关此命令的文档。

[edu2mfgitulstagi@st03 server]$ yarn build
yarn run v1.22.4
$ npm-run-all clean lint compile copy
/bin/sh: npm-run-all: command not found

请帮我解决这个问题。提前谢谢你

标签: reactjsyarnpkg

解决方案


推荐阅读