Skip to content
#

node

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 16,563 public repositories matching this topic...

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);
  ^

LadyDzidzor
LadyDzidzor commented Mar 2, 2020

Bug report

NEXTJS Examples api routes and apollo not working on build
https://github.com/zeit/next.js/tree/canary/examples/api-routes-apollo-server-and-client-auth

Describe the bug

The examples project does not login user after I run next build
The JWT token is created and signed, but the error seems to happen when it calls

  context.res.setHeader(
          'Set-Cookie',
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
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
rafamontoya
rafamontoya commented Dec 16, 2018

On Windows10 machine, following README installation instructions:

c:\code\mean>npm start

mean@2.0.2 start c:\code\mean
concurrently -c "yellow.bold,green.bold" -n "SERVER,BUILD" "nodemon server" "ng build --watch"

[SERVER] [nodemon] 1.18.9
[SERVER] [nodemon] to restart at any time, enter rs
[SERVER] [nodemon] watching: .
[SERVER] [nodemon] starting node server
[SERVER] ../.

nvm-windows
BCurrell
BCurrell commented Feb 3, 2019

If this is a question about how to use NVM4W, please use stackoverflow instead.

If this is an issue regarding antivirus, make sure you search the existing issues first.

My Environment

  • Windows 7 or below (not truly supported due to EOL - see wiki for details)
  • Windows 8
  • Windows 8.1
  • Windows 10
  • Wind
rubenofen
rubenofen commented Sep 24, 2019

Node version (or tell us if you're using electron or some other framework):

12.1.0

ShellJS version (the most recent version/Github branch you see the bug on):

0.8.3

Operating system:

Windows

Description of the bug:

sed is applied only once by line:
original archive:
import [COMPONENTNAME]Base from './[COMPONENTNAME]Base';
`const [COMPONENTNAME] = styled( [COMPONENTNAME]

joemaffei
joemaffei commented Aug 19, 2019

There are two mentions of a reactide.config.js file in the README:

The component tree works out-of-the-box by finding the entry point to your React application that you provide inside the reactide.config.js file.

Go to the reactide.config.js file and change the .html and .js entry points to the relative path of your respective files.

But I could not find any examples or documentation

alexanderkjeldaas
alexanderkjeldaas commented Jan 27, 2020

I have a feeling that most people use async/await in new code, and none of the examples use it.

Also, from browsing random issues, better tests will be written using this structure. For example #543 is caused by not using async/await in tests.

// This passes!
it("should reset", async () => {
        request(app)
            .get("/reset")
            .expect(205);
});
richseviora
richseviora commented Jan 8, 2020

What is the expected behavior?

Expected that the following would block requests to https://domain.com

nock('https://domain.com');

What is the actual behavior?
It doesn't! It looks like the scope will only intercept the request once a complete interception (scope, request, reply) is in place.

Possible solution
Perhaps update the docs to clarify this? I don't real

shanekwheeler
shanekwheeler commented Dec 3, 2018

I am trying to run an express app through Visual Studio Code. I have a launch.json file with DEBUG defined like so:

        "env": {
             "DEBUG": "*"
        }

Here is a trimmed down version of my app.js file where you can see the bolded debug line that doesn't output to the debug console (Test 2). Test 1 before it outputs as expected. If I run this from the command li

ktwbc
ktwbc commented Oct 12, 2019

When using git cz, one option for a type to select is "improvement", but this fails the enum check


husky > commit-msg hook failed (add --no-verify to bypass)
git exited with error code 1
kris@Kriss-MacBook-Pro cent-admin % git cz
cz-cli@4.0.3, cz-conventional-changelog@3.0.1

? Select the type of change that you're committing: 
  revert:      Reverts a previous commit 
  feat:
Alys
Alys commented Jan 28, 2019

From cTheDragons:

It appears the username in the settings on the web has not been updated since the changeover. It states:
"We will be transitioning login names to unique, public usernames soon. This username will be used for invitations, @mentions in chat, and messaging."

From shanaqui:
![image](https://user-images.githubusercontent.com/1495809/51815458-cd275f00-230c-11e9-8f95-457e57bc7c7

pnpm
boenrobot
boenrobot commented Jan 6, 2020

I have a project that is in a monorepo and uses yarn right now.

I'm considering migrating to pnpm for the monorepo, as well as all other projects I contribute to, as I have a small SSD as local storage (and with Windows...). However, it would be ideal if there was compatibility between yarn's workspaces and pnpm, so that we don't have to jump "all in" to it.

To this end, yarn allows packages

Created by Ryan Dahl

Released May 27, 2009

Organization
nodejs
Website
nodejs.org/en
Wikipedia
Wikipedia
You can’t perform that action at this time.