Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部署时报错Error: Cannot find module './getHotKey' #12

Closed
NeptuneIsTheBest opened this issue Dec 28, 2019 · 22 comments
Closed

部署时报错Error: Cannot find module './getHotKey' #12

NeptuneIsTheBest opened this issue Dec 28, 2019 · 22 comments

Comments

@NeptuneIsTheBest
Copy link

已经npm install了,依然无法部署
image

@NeptuneIsTheBest
Copy link
Author

就是换了最新版才出这个问题了,之前的老版本不会

@Rain120
Copy link
Owner

Rain120 commented Dec 28, 2019

@17665347409
可以截图看看你的代码,我本地环境没有问题的

@NeptuneIsTheBest
Copy link
Author

@Rain120 是跟之前那个老哥一样的情况

@Rain120
Copy link
Owner

Rain120 commented Dec 28, 2019

@17665347409
image
请帮我截图看下你那边这个文件的代码,谢谢

@yzh990918
Copy link

同问 搞好了没

@Rain120
Copy link
Owner

Rain120 commented Dec 30, 2019

能把node版本和这些有关于getHotKey的信息告诉我嘛
image

@yzh990918
Copy link

image

报错信息

Uploading image.png…

我尝试过安装这个依赖,但是装不上 前面的老哥也是一样

@yzh990918
Copy link

image

@yzh990918
Copy link

本地能够跑起来 一到线上就报错了

@Rain120
Copy link
Owner

Rain120 commented Dec 31, 2019

请问你的服务器环境是什么

@NeptuneIsTheBest
Copy link
Author

@Rain120 CentOS7 64 5.4.0-rc6
node版本应该是最新的 等我回去看看

@NeptuneIsTheBest
Copy link
Author

image

@NeptuneIsTheBest
Copy link
Author

image
image

@NeptuneIsTheBest
Copy link
Author

image
image
image

@NeptuneIsTheBest
Copy link
Author

@Rain120
image
image

@NeptuneIsTheBest
Copy link
Author

@Rain120 代码已经截图了在上面~

@Rain120
Copy link
Owner

Rain120 commented Jan 3, 2020

@17665347409
我抽空排查下吧,请稍后,谢谢

@NeptuneIsTheBest
Copy link
Author

@Rain120 好的谢谢你

@Rain120
Copy link
Owner

Rain120 commented Jan 20, 2020

@17665347409 @251205668
非常抱歉,让各位久等了,最近非常忙,没空排查问题
这个 Bug 已经解决了,请 pull 最新代码即可。
Note: 如果不行的话,请手动将 routers/context/getHotkey.js修改为 routers/context/getHotKey.js, 实现不行的话,再使用这个方式

image

Docker Centos 启动

image

@Rain120 Rain120 closed this as completed Jan 20, 2020
@NeptuneIsTheBest
Copy link
Author

@Rain120 依旧不行。。。

已经pull最新版了。。

@NeptuneIsTheBest
Copy link
Author

@17665347409 @251205668
非常抱歉,让各位久等了,最近非常忙,没空排查问题
这个 Bug 已经解决了,请 pull 最新代码即可。
Note: 如果不行的话,请手动将 routers/context/getHotkey.js修改为 routers/context/getHotKey.js, 实现不行的话,再使用这个方式

image

Docker Centos 启动

image

还有这个我没看懂。。。把啥替换成啥

@Rain120
Copy link
Owner

Rain120 commented Jan 21, 2020

解决:检查文件名的大小写问题,mac 对路径不敏感,linux 敏感

@17665347409
请再 git pull 一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants