nodejs的定时任务node-schedule
摘要:const schedule = require("node-schedule"); 每5分钟执行一次:= */5 * * * * //5分钟查询一次价格变化* * * * * * schedule.scheduleJob('*/5 * * * *', () => { //todo }); 每几小时
阅读全文
posted @
2020-12-30 10:38
可乐冒泡泡丶
阅读(786)
推荐(0)
nodejs的https请求
摘要:使用axios请求时,报错:`unable to verify the first certificate` 找了几个解决办法 发现都不行,就使用request进行请求,发现还是“unable to verify the first certificate”, 根据 https://www.redd
阅读全文
posted @
2020-12-24 16:55
可乐冒泡泡丶
阅读(1454)
推荐(0)
虚拟机上ubuntu系统更新node,npm报错
摘要:报错: /usr/local/lib/node_modules/npm/bin/npm-cli.js:87 let notifier = require('update-notifier')({pkg}) ^^^^^^^^SyntaxError: Unexpected identifier at M
阅读全文
posted @
2020-07-08 11:07
可乐冒泡泡丶
阅读(668)
推荐(0)
node笔记(持续更新)
摘要:使用cmd创建nodejs的项目 1)打开控制命令行, 进入到你创建项目的文件夹。2)mkdir myNode --创建一个myNode文件夹3)cd myNode4) npm init --初始化工程 此时需要填写一些项目信息,可以直接回车使用默认的。 连接mysql var mysql = re
阅读全文
posted @
2019-10-25 11:25
可乐冒泡泡丶
阅读(186)
推荐(0)