我想为grapesjs做点贡献。然而,我很愚蠢地使用了webpack和巴别塔。当我尝试构建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如何修复此错误?谢谢。
发布于 2020-12-25 20:46:44
您需要在运行build之前运行npm install,以安装软件包的依赖项。
https://stackoverflow.com/questions/65382352
复制相似问题