Node.js
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 76,393 public repositories matching this topic...
Consider the following snippet run in the main process where one wants to listen for "will-prevent-default" events and after some asynchronous operation (do_something, a call which returns a Promise) initiated by the event listener, depending on the result (result) of the operation, call preventDefault on the even
Section/Content To Improve
Section in main readme around performing multiple concurrent requests
Suggested Improvement
There is a request to remove axios.all and axios.spread (axios/axios#1042)
Although the functionality has not yet been removed, we can at least stop advertising it if there is intent (with good reason) to remove it. We can still keep
When not using a file extension in ESM - eg import pkg from './path' we currently just throw a straightforward not found error. As proposed by @MylesBorins in nodejs/modules#443 it would be useful to enhance this error message.
Ideally the error message should run the CJS resolver and say "the CJS resolver would have resolved this module to ...". We actually previous
Description
So our function arrayToHtmlList is in a pretty bad space and could use an update. We already had some discussion over at #675 but I wanted to move the update discussion over to an issue for more visibility.
Current problem:
It uses an awkward query selector instead of the `document.prototype.getElementBy
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
On Meteor 1.8.1 this is maybe true for browser-policy package, but it is not really true for any realistic Meteor app these days because apps use ecmascript which requires dynamic-import, which enabled eval by default. So in practice, by default, eval is enabled. See #10704.
It should be probably clarified in the README that the package by default keeps it disabled, but Meteor apps by
:white_check_mark: The largest Node.js best practices list (December 2019)
-
Updated
Jan 5, 2020 - JavaScript
Challenge Build a Tribute Page has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
好像VIMEO把GOOGLE的云服务器IP拉黑了,始终打不开视频。想问问是否有其他视频源可以观看
When you open an live http site in a popup and the site wants to redirect back to the NWjs app using the chrome-extension protocol an error ERR_UNSAFE_REDIRECT occures.
Note this is a very common usage for example for Single Sign On sites or OAuth2 autorizations.
@rogerwang - could you please check as this is a bit urgent, we are close to release of our NWJS app and an SSO and OAuth2 really
Issue Summary
Bookmark card has few minor issues atm as listed below -
- Better error message handling: Currently bookmark card fails with
Unable to parse URLerror in case of all failures including insufficient metadata available. We should differentiate between "unable to parse" and "page has insufficient metadata" cases and show appropriate error message to avoid confusion (ref: ht
What's going wrong?
I discovered this default behavior of PM2 by trial and error:
-outlogs and-errlogs will default to output in~/.pm2/logs, unless and only unless they are [rerouted](http://pm2.keymetrics.io/docs/usage/lo
AI/ML API Examples
We have some documentation about using IBM Watson: https://github.com/sahat/hackathon-starter#ibm-watson
It would be great if we have one or more working API examples using Watson or ML/AI APIs that are provided by other companies such as Microsoft or AWS.
Check List
Please check followings before submitting a new feature request.
- I have already read Docs page
- I have already searched existing issues
Feature Request
New to Hexo and finding some inadequacies in some of the documentation.
- Under Helpers List Tags (and other
list_helpers) the "style"
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-spacinDescription
Scrolling to the top of the page stops before the entire frame is visible.
Details
- Are you nativefying a public website? Yes: github.com
- Feature request? Have you looked at
nativefier --helpto see if an existing op
This issue (webtorrent/webtorrent#1685) mentioned a nice resource that shows how to integrate WebTorrent with various JS video libraries.
https://qiita.com/mehdi/items/22ba55ae30bdcedd0746
Would be nice to add updated versions of these examples to the docs.
When I read the docs, e.g. https://date-fns.org/v2.8.1/docs/Time-Zones , I found some example code has errors (The pattern 'D.M.YYYY HH:mm:ss.SSS [GMT]Z (z)' in the that page is not valid), but can't find a place to post comments.
I also find several other minor issues in the documents too. Consider add a link or something to let readers add comments?
Describe the bug
Dates in list view are shown without time. In my use case I have a content-type that has many entries that differ only in time.
I guess adding the time wouldn't hurt anybody. But making it adjustable would be the nicer way, of course.
I'm creating this as a bug report since I think it just was forgotten. E.g. in relational field selection you can see the whole date time.
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
I noticed a bug in the html_to_sheet function. When reading cells that are empty, the cell index is correctly incremented, but if the cell has HTML tags and is observed to be empty after stripping the tags, the cell index is not incremented. This results in misalignment of the subsequent cells:
https://github.com/SheetJS/js-xlsx/blob/e3c5eac99c3b2be6929adfca455c1be87fab792b/xlsx.js#L18956-L18
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
As of #2316, the upcoming v3 release has a built-in debug command. I've updated two of the existing debugging recipes but I'm not a WebStorm user, so this recipe still needs updating: https://github.com/avajs/ava/blob/master/docs/recipes/debugging-with-webstorm.md
Document `t.try()`
I've spent a while investigating and assessing various options to replace readthedocs, including but not limited to docusaurus, docsify, docpress, gitbook and vuepress.
I really like the docsify approach and then discovered the similar but-with-more-bells-attached docute and it appears to support pretty much everything we need (and more):
- retrieves *vers
The output I get is
$ pkg . --targets node10-alpine-x64 --out-path pkg
> pkg@4.4.1
> Fetching base Node.js binaries to PKG_CACHE_PATH
> Warning Cannot include addon %1 into executable.
The addon must be distributed with executable as %2.
/app/node_modules/node-sass/vendor/linux_musl-x64-64/binding.node
path-to-executable/binding.node
> Error! Cannot read file, ENOENT
worker


The Issue
Whilst going through the ReactJS lessons the link to:
'the way you apply classes to JSX elements.' Isn't working, thus giving a 404. The link it tries to go to is this:
https://www.freecodecamp.org/learn/front-end-libraries/react/learn/front-end-libraries/react/define-an-html-class-in-jsx
I've tested the link in Chrome, Firefox, Safari, Opera, Tor, Chrome Canary and Fire