首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用npm构建grapesjs

使用npm构建grapesjs
EN

Stack Overflow用户
提问于 2020-12-21 00:49:17
回答 1查看 64关注 0票数 0

我想为grapesjs做点贡献。然而,我很愚蠢地使用了webpack和巴别塔。当我尝试构建grapesjs时,我遇到了一些错误。

错误:

代码语言:javascript
复制
> 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

如何修复此错误?谢谢。

EN

回答 1

Stack Overflow用户

发布于 2020-12-25 20:46:44

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65382352

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档