Skip to content
#

Node.js

nodejs logo

Node.js is a tool for executing JavaScript in a variety of environments. JavaScript had humble beginnings as a language that lived only in web browsers, but the Node.js project has expanded its reach and helped make it the most popular programming language in the world. Node.js extends the creative potential of people with web development experience, enabling a new generation of developers to create servers, command-line tools, desktop apps, and even robots.

Here are 79,199 public repositories matching this topic...

freeCodeCamp
Ieahleen
Ieahleen commented Nov 19, 2019

the solution given in the guide here https://www.freecodecamp.org/forum/t/freecodecamp-challenge-guide-cash-register/16012
fails in a situation like

const cid = [["PENNY",1], ["NICKEL", 0], ["DIME", 0], ["QUARTER", 1], ["ONE", 1], ["FIVE", 5], ["TEN", 10], ["TWENTY", 20], ["ONE HUNDRED", 0]];
checkCashRegister(3, 3.01, cid);

the change due is calculated as 3.01-3, which results in

electron
jasnell
jasnell commented Nov 12, 2019

test-source-map fails on Windows 10. Looking at the test file, there is a special case for Windows that is not being met under certain conditions. I believe it has to do with how git is configured to handle line endings on checkout but I still need to confirm

C:\Users\jasne\Projects\node>Release\node test\parallel\test-source-map
assert.js:93
  throw new AssertionError(obj);
  ^

yanokenken
yanokenken commented Sep 11, 2019

If you follow the readme procedure, the following error will occur in the first npm install express.

saveError ENOENT: no such file or directory, open '/xxx/xxx/package.json'

As you know, the cause is package.json does not exist.
Other users seem to have a similar error, so it seems better to add npm init to the readme.
Or I thought it would be nice to bring a link `Please follow

Ghost
formerandroider
formerandroider commented Dec 18, 2019

Issue Summary

In Safari 13.0.4 on macOS 10.15.2, the 'Upload routes YAML' button triggers a file browser that only allows selection of files ending in .yml. These are not accepted by the application, which requires a .yaml extension. This results in routes not being uploadable with Safari.

To Reproduce

  1. In Safari, click the 'Upload routes YAML' button in Labs.

This doesn'

saulotoledo
saulotoledo commented Feb 11, 2020

The documentation for the HTTP exceptions in packages/common/exceptions/ is incorrect:

  • The default return format for specific HTTP exceptions is { statusCode, error }, not { statusCode, message } (this leads to #4044, but it may be a breaking change and it can wait);
  • The statusCode in the result cannot be overwritten as described;
  • A proper explanation for the message argument
feross
feross commented Aug 18, 2019

https://eslint.org/docs/rules/func-call-spacing

When calling a function, developers may insert optional whitespace between the function’s name and the parentheses that invoke it.

Option: "never" (default) disallows space between the function name and the opening parenthesis.

Examples of incorrect code for this rule with the default "never" option:

/*eslint func-call-spacin
trgcyln
trgcyln commented Oct 4, 2019

I'm trying to export cs

icleolion
icleolion commented Jan 16, 2020

parseISO v2 documentation currently states

The previous parse implementation was renamed to parseISO.

parse v2 documentation currently states

Old parse was renamed to toDate. Now parse is a new function which parses a string using a provided format.

I think considering the sentence is to divert people who have previously been using v1 parse to the correct v2 equivalent, it only

langpavel
langpavel commented Oct 24, 2017

Too wide (and falsy) segregation of GraphQL Types and Resolvers

The first example of this is new ObjectType in src/data/queries/index.js importing fields.
Fields should be taken in context of parent type, not as standalone information.

This can ensure some users that custom types cannot have own field resolvers which is false.

In fact, much of fields which can have own resolvers

sheetjs
outsideris
outsideris commented Oct 5, 2019

If specify non-existed file with --file option, mocha throw expection.

./bin/mocha --file non-existed
/Users/mocha/node_modules/yargs/yargs.js:1163
      else throw err
           ^

Error: Cannot find module '/Users/mocha/non-existed'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25
ava
novemberborn
novemberborn commented Feb 16, 2020

For historical reasons, the expectations object passed to t.throws() and t.throwsAsync() was not allowed to be undefined.

Now that we've simplified these assertions, we should allow expectations to be both undefined and null. See here:

https://github.com/avajs/ava/blob/55a3649000611900ba6dfbf94faefa6372a70e79/lib/assert.js#L76

This will cause some of our tests to fail, so th

dadiu
dadiu commented Jul 12, 2017

具体报错如下图

F:\github\myStudy\node\lesson6>mocha

test/main.test.js
1) should equal 0 when n === 0
2) should equal 1 when n === 1
3) should equal 55 when n === 10
√ should throw when n > 10
√ should throw when n < 0
√ should throw when is not Number

3 passing (35ms)
3 failing

  1. test/main.test.js should equal 0 when n === 0:
    AssertionError: e

Created by Ryan Dahl

Released May 27, 2009

Organization
nodejs
Website
nodejs.org/en
Wikipedia
Wikipedia

Related Topics

mongodb react docker
You can’t perform that action at this time.