node-lessons icon indicating copy to clipboard operation
node-lessons copied to clipboard

:closed_book:《Node.js 包教不包会》 by alsotang

Results 93 node-lessons issues
Sort by recently updated
recently updated
newest added

https://github.com/alsotang/node-lessons/tree/master/lesson4 手脚架=》脚手架

https://cnodejs.org/这个网站现在已经不维护了吗,老哥

如题,添加如下测试用例无法通过 it('should throw when n isnt Number', function () { (function () { var a = 'asd'; a = parseInt(a); main.fibonacci(a); }).should.throw('n should be a Number'); });] 直接执行 node main.js...

Bumps [superagent](https://github.com/visionmedia/superagent) from 0.20.0 to 5.1.0. Release notes *Sourced from [superagent's releases](https://github.com/visionmedia/superagent/releases).* > ## v5.1.0 > - Disable setting default user-agent ([#1495](https://github-redirect.dependabot.com/visionmedia/superagent/issues/1495)) e652b8c > > https://github.com/visionmedia/superagent/compare/v5.0.9...v5.1.0 > > ## v5.0.9...

dependencies

详细的 node.js 学习 图文教程,希望可以帮助到要学习node 的同学。从 node 内置核心模块到 node 操作 mongoDB。 地址: https://github.com/pubdreamcc/Node.js

兼容高版本环境下的测试用例 高版本环境下: Node.js: 10.15.2 mocha: 6.1.4 should: 13.2.3 supertest: 4.0.2 express: 4.17.0 运行测试用例会占用3000端口,可能导致: 1.app已运行的情况下,会报端口已被占用的错误 2.app没有运行,测试用例运行后没有退出,继续监听端口 解决方法: 根据module.parent判断是否为运行测试用例,是的话则不监听端口

求助:lesson 5,根据您写的async案例我写了一个小爬虫针对cnode的,我怎么才能证明他确实是限制在5个请求上? ``` # 爬虫代码 var cheerio = require('cheerio'); var superagent = require('superagent'); var url = require('url'); var async = require('async'); var cnodeUrl = 'https://cnodejs.org/'; var topicUrls = []; superagent.get(cnodeUrl)...

Cannot read property 'isVisit' of undefined,

Error: connect ECONNREFUSED at exports._errnoException (util.js:746:11) at TCPConnectWrap.afterConnect [as oncomplete](net.js:1012:19)