博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
gatsby_Gatsby,修复“找不到模块gatsby-cli / lib / reporter”错误
阅读量:2505 次
发布时间:2019-05-11

本文共 836 字,大约阅读时间需要 2 分钟。

gatsby

I created a site using and I ran gatsby develop to start a local server.

我使用创建了一个网站,并运行了gatsby develop来启动本地服务器。

But a weird error showed up, coloring with red my terminal:

但是出现了一个奇怪的错误,终端显示为红色:

Gatsby error

After a few searches across GitHub and StackOverflow (I found a lot of people with the same problem!) and this is what fixed the error.

在GitHub和StackOverflow上进行了几次搜索之后(我发现很多人都遇到同样的问题!),这就是修复错误的原因。

First, I deleted node_modules:

首先,我删除了node_modules

rm -rf node_modules

then I used instead of npm install:

然后我用代替了npm install

yarn

This installed all the packages again.

这将再次安装所有软件包。

Finally I ran gatsby develop and it worked.

最终,我运行了gatsby develop ,并且运行正常。

Not sure what the cause problem is/was, but I tried again running npm install instead of yarn and it didn’t work.

不知道是什么原因造成的,或者是,但是我再次尝试运行npm install而不是yarn ,它没有用。

翻译自:

gatsby

转载地址:http://ttmgb.baihongyu.com/

你可能感兴趣的文章
mxonline实战2, 后台管理神器xadmin
查看>>
mxonline实战6 , 忘记用户密码时进行重置
查看>>
[leedcode 142] Linked List Cycle II
查看>>
Cookie的使用
查看>>
DOM基础
查看>>
初学者应当掌握的算法
查看>>
React+webpack开发环境的搭建
查看>>
c#基础语言编程-程序集和反射
查看>>
手把手教你使用“谷歌云消息服务(GCM)"
查看>>
图解SQL inner join、left join、right join、full outer join、union、union all的区别
查看>>
生成日志
查看>>
WCF初探-19:WCF消息协定
查看>>
算法技巧之打表
查看>>
nodejs创建服务器
查看>>
安卓 图片加载框架ImageLoader
查看>>
ApplicationBar
查看>>
Spring Boot Docker 实战
查看>>
Div Vertical Menu ver3
查看>>
Git简明操作
查看>>
InnoDB为什么要使用auto_Increment
查看>>