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

技术要求太高了。入门即放弃系列 #467

Open
18570029168 opened this issue Jun 24, 2022 · 6 comments
Open

技术要求太高了。入门即放弃系列 #467

18570029168 opened this issue Jun 24, 2022 · 6 comments

Comments

@18570029168
Copy link

mangodb、redis、node、npm、swagger,还要安装对应的图形界面管理,安装一个mock应用,需要这么多的技术配套,版本还有要求,成本实在是太高,就剩下npm这一步了,本来使用的是node14的版本,看要求应该是node8,经过一天的时间也没安装成功,最后停在
npm run dev[18440]: c:\ws\src\node_file.cc:1025: Assertion `(argc) == (4)' failed.
[nodemon] app crashed - waiting for file changes before starting...
有碰到同样问题并解决的吗?

@includeMaple
Copy link

之前看到过类似的问题,忘记是用什么解决了,昨天弄了一晚上部署好了,罗列下我这边出现过的问题:

  1. 数据库的操作系统,推荐macos或者linux(windows redis版本不行,wsl mongodb版本不行)
  2. node版本:使用了8.17.0,版本实在太老了无力吐槽,nvm每次打开终端会重置到default,别忘了切换终端的时候把node版本弄回来(之前弄错了几次)
  3. pm2版本需要跟着node走,没找到对应列表,参考https://stackoverflow.com/questions/61587933/pm2-command-error-syntaxerror-unexpected-token-in-linux-environment,最终使用了3.5.0版本
  4. 因为node频繁切换pm2出现识别错node,pm2 log查看到识别错node后需要重新识别,pm2 reload

最终:linux用最新mongodb和redis,pm2+nginx

@horseson2018
Copy link

mongodb的版本也需要注意一下,最好用4.x的,我用4.4.16本地成功跑起来了

@13078417792
Copy link

用docker部署吧,不用担心环境问题

@13078417792
Copy link

我现在部署服务版本

  • node v16.10.0
  • redis v5.0.7
  • mongodb v4.0
  • pm2 v5.2.0

@alinGmail
Copy link

可以试试这个 https://github.com/alinGmail/LiveMock 安装简单很多,自带数据库,不需要安装其他东西,还有桌面版本。

@bmphjhu906
Copy link

高个毛、docker一键启动

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

6 participants