0

我想为grapesjs做出贡献。但是,我对使用 webpack 和 babel 很愚蠢。当我尝试构建grapesjs 时,我遇到了一些错误。

错误:

> grapesjs@0.16.22 build
> npm run check && npm run v:patch && npm run build-dev && npm run build-prod


> grapesjs@0.16.22 check
> npm run lint && npm run test


> grapesjs@0.16.22 lint
> eslint src

sh: 1: eslint: not found
npm ERR! code 127
npm ERR! path /home/furkan/Desktop/grapesjs/grapesjs
npm ERR! command failed
npm ERR! command sh -c eslint src

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/furkan/.npm/_logs/2020-12-19T09_25_34_660Z-debug.log
npm ERR! code 127
npm ERR! path /home/furkan/Desktop/grapesjs/grapesjs
npm ERR! command failed
npm ERR! command sh -c npm run lint && npm run test

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/furkan/.npm/_logs/2020-12-19T09_25_34_831Z-debug.log
npm ERR! code 127
npm ERR! path /home/furkan/Desktop/grapesjs/grapesjs
npm ERR! command failed
npm ERR! command sh -c npm run check && npm run v:patch && npm run build-dev && npm run build-prod

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/furkan/.npm/_logs/2020-12-19T09_25_34_931Z-debug.log

我该如何解决这个错误?谢谢。

4

1 回答 1

0

您需要npm install在运行构建之前运行,以安装包的依赖项。

于 2020-12-25T12:46:44.437 回答