找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 79|回复: 10

懂Node.js的大佬进 , 酬谢!(已解决)

[复制链接]

10

主题

37

回帖

128

积分

注册会员

积分
128
发表于 2019-2-25 18:20:05 | 显示全部楼层 |阅读模式
本帖最后由 hwang 于 2019-2-25 22:44 编辑

https://github.com/ruffrey/mailsac

另收一个开了25端口的vu号, 低配额就行, 想建个临时邮箱玩玩
回复

使用道具 举报

10

主题

37

回帖

128

积分

注册会员

积分
128
 楼主| 发表于 2019-2-25 22:41:37 | 显示全部楼层

藤宫武藏 发表于 2019-2-25 22:32

我看到楼主的帖子 专门注册个账号上来

你的node是什么版本啊 是不是4.x或者6.x 能不能升级到8.x再试试  ...

感谢大佬支持, 有两个问题, 一个问题是NODE_DEV的值, 或者说是node-config的设置问题, 需要在./config下新建一个production.json,内容为"{}", 另外一个就是你说的node的版本问题, 升到0.12, 目前已经自行解决了
回复

使用道具 举报

10

主题

37

回帖

128

积分

注册会员

积分
128
 楼主| 发表于 2019-2-25 22:32:00 | 显示全部楼层

zhangnew 发表于 2019-2-25 18:27

遇到什么报错

WARNING: NODE_ENV value of 'production' did not match any deployment config file names.
WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode
Mon, 25 Feb 2019 12:22:37 GMT mailsac master 23659
Mon, 25 Feb 2019 12:22:37 GMT mailsac forked worker 23668
WARNING: NODE_ENV value of 'production' did not match any deployment config file names.
WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode
Mon, 25 Feb 2019 12:22:38 GMT mailsac ------ Mailsac Worker Start ------ production 23668

Mon, 25 Feb 2019 12:22:38 GMT mailsac PROCESS UNCAUGHT EXCEPTION /opt/mailsac/node_modules/mailparser/node_modules/uue/uue.js:184
   matches.forEach(nextMatch => {
                             ^^
Unexpected token => /opt/mailsac/node_modules/mailparser/node_modules/uue/uue.js:184
   matches.forEach(nextMatch => {
                             ^^
SyntaxError: Unexpected token =>
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object. (/opt/mailsac/node_modules/mailparser/lib/streams.js:8:11)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
Mon, 25 Feb 2019 12:22:39 GMT mailsac worker DIED 23668 0
WARNING: NODE_ENV value of 'production' did not match any deployment config file names.
WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode
回复

使用道具 举报

74

主题

1106

回帖

2456

积分

金牌会员

积分
2456
发表于 2019-2-25 20:37:40 | 显示全部楼层
github里不是有说明么

wget https://raw.githubusercontent.com/ruffrey/mailsac/master/install/ubuntu-1404.sh
sudo sh ubuntu-1404.sh
回复

使用道具 举报

10

主题

37

回帖

128

积分

注册会员

积分
128
 楼主| 发表于 2019-2-25 18:27:00 | 显示全部楼层

勇气 发表于 2019-2-25 18:23

github里不是有说明么

wget https://raw.githubusercontent.com/ruffrey/mailsac/master/install/ubuntu-1 ...

就是一键安装不成功, 这才救助大佬
回复

使用道具 举报

68

主题

1990

回帖

4214

积分

论坛元老

积分
4214
发表于 2019-2-25 18:23:35 | 显示全部楼层
感觉这个 readme 足够详细了
回复

使用道具 举报

1

主题

30

回帖

75

积分

注册会员

积分
75
发表于 2019-2-25 18:24:18 | 显示全部楼层
遇到什么报错
回复

使用道具 举报

20

主题

167

回帖

448

积分

中级会员

积分
448
发表于 2019-2-25 18:23:00 | 显示全部楼层
给个小鸡,我也玩玩看
回复

使用道具 举报

10

主题

37

回帖

128

积分

注册会员

积分
128
 楼主| 发表于 2019-2-25 18:25:26 | 显示全部楼层

联通 发表于 2019-2-25 19:11

给个小鸡,我也玩玩看

大佬懂? 懂的话我私信你小鸡
回复

使用道具 举报

268

主题

1593

回帖

4020

积分

论坛元老

积分
4020
发表于 2019-2-25 18:27:08 | 显示全部楼层
git clone 下来,用后面的部署
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Discuz! X

GMT+8, 2025-5-9 18:14 , Processed in 0.020816 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表