Trending questions in Node-js

0 votes
1 answer

How do I parse a data URL in Node?

Hello @kartik, Put the data into a Buffer ...READ MORE

Nov 30, 2020 in Node-js by Niroj
• 82,880 points
1,762 views
0 votes
1 answer

Error:FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

Hello @kartik, You can launch NPM using : node ...READ MORE

Nov 27, 2020 in Node-js by Niroj
• 82,880 points
1,833 views
0 votes
1 answer

How to run Gulp tasks sequentially one after the other?

Hello @kartik, By default, gulp runs tasks simultaneously, ...READ MORE

Nov 26, 2020 in Node-js by Niroj
• 82,880 points
1,805 views
0 votes
1 answer

How do I update devDependencies in NPM?

Hello @kartik, To update package.json in addition to ...READ MORE

Jul 17, 2020 in Node-js by Niroj
• 82,880 points
7,468 views
0 votes
0 answers

I got an error message while creating database in Expressjs

https://www.youtube.com/watch?v=JnvKXcSI7yk I got an error at 1:08:22 Code for ...READ MORE

Dec 17, 2020 in Node-js by nishant kumar
• 120 points
764 views
0 votes
1 answer

How to npm install to a specified directory?

Hello @kartik, You can use the --prefix option: mkdir -p ./install/here/node_modules npm ...READ MORE

Jul 15, 2020 in Node-js by Niroj
• 82,880 points
7,349 views
0 votes
1 answer

How to host a Node.Js application in shared hosting?

Hello @kartik, You can run node.js server on a typical ...READ MORE

Jul 17, 2020 in Node-js by Niroj
• 82,880 points
7,175 views
0 votes
1 answer

How to Get data from fs.readFile?

Hello @kartik, The function you have defined is ...READ MORE

Jul 15, 2020 in Node-js by Niroj
• 82,880 points
7,188 views
0 votes
1 answer

Error:npm install won't install devDependencies

Hello @kartik, Try: npm install --only=dev If you are worried ...READ MORE

Jul 15, 2020 in Node-js by Niroj
• 82,880 points
7,042 views
0 votes
1 answer

How to download a file with Node.js without using third-party libraries?

Hii, You can create an HTTP GET request and pipe ...READ MORE

Nov 24, 2020 in Node-js by Niroj
• 82,880 points
1,251 views
0 votes
1 answer

How to change to an older version of Node.js?

Hello, Install specific version of node sudo npm cache ...READ MORE

Nov 24, 2020 in Node-js by Niroj
• 82,880 points
1,222 views
0 votes
1 answer

How to run app.js in nodejs?

Hello @kartik, Assuming I have node and npm properly installed on the ...READ MORE

Oct 13, 2020 in Node-js by Niroj
• 82,880 points
2,934 views
0 votes
1 answer

How to get union of several immutable.js Lists?

Hello @kartik, Merge will update the index with ...READ MORE

Nov 30, 2020 in Node-js by Niroj
• 82,880 points
879 views
0 votes
1 answer

How to get all count of mongoose model?

Hello @kartik, The reason your code doesn't work ...READ MORE

Sep 7, 2020 in Node-js by Niroj
• 82,880 points
4,433 views
0 votes
1 answer

How does a node.js process know when to stop?

Hello, node keeps track of all outstanding work ...READ MORE

Nov 30, 2020 in Node-js by Niroj
• 82,880 points
716 views
0 votes
1 answer

Error:npm not working after clearing cache

Hello @kartik, Try this: npm cache clean --force OR It ...READ MORE

Jul 17, 2020 in Node-js by Niroj
• 82,880 points
6,486 views
0 votes
1 answer

How to get hash of most recent git commit in Node?

Hello @kartik, Try this: revision = require('child_process') .execSync('git ...READ MORE

Oct 14, 2020 in Node-js by Niroj
• 82,880 points
2,635 views
0 votes
1 answer

How to set Environment Variables for Node to retrieve?

Hello, Environment variables (in this case) are being ...READ MORE

Nov 26, 2020 in Node-js by Niroj
• 82,880 points
754 views
0 votes
1 answer

Uncaught Error: Module did not self-register.", source: /home/niroj/dev/jukebox/node_modules/vlc/node_modules/ffi/node_modules/bindings/bindings.js (84)

Hello @kartik, If you've upgraded node then npm rebuild might ...READ MORE

Oct 13, 2020 in Node-js by Niroj
• 82,880 points
2,610 views
0 votes
1 answer

How can I update npm on Windows?

Hello @kartik, To update NPM, this worked for ...READ MORE

Jul 13, 2020 in Node-js by Niroj
• 82,880 points
6,437 views
0 votes
1 answer

How to determine a user's IP address in node?

Hello @kartik, In your request object there is a property ...READ MORE

Nov 26, 2020 in Node-js by Niroj
• 82,880 points
542 views
0 votes
1 answer

How to run node.js app forever when console is closed?

Hello @kartik, You may also want to consider ...READ MORE

Oct 14, 2020 in Node-js by Niroj
• 82,880 points
2,367 views
0 votes
1 answer

Error: listen EADDRINUSE while using nodejs?

Hello @kartik, EADDRINUSE means that the port number which listen() tries ...READ MORE

Jul 9, 2020 in Node-js by Niroj
• 82,880 points
6,509 views
0 votes
1 answer

Error:TypeError: Object.values is not a function.

Hello @kartik, Object.values is a new feature . It is ...READ MORE

Oct 15, 2020 in Node-js by Niroj
• 82,880 points
2,251 views
0 votes
1 answer

How to upgrad Node.js to latest version?

Hello, The module n makes version-management easy: sudo npm install n ...READ MORE

Nov 24, 2020 in Node-js by Niroj
• 82,880 points
460 views
0 votes
1 answer

How to get access to webpack-dev-server from devices in local network?

Hello @kartik, You can set your ip address ...READ MORE

Jul 17, 2020 in Node-js by Niroj
• 82,880 points
6,056 views
0 votes
1 answer

Error:npm WARN unmet dependency in nodejs

Hii @kartik, Following are the possible solution : Manually ...READ MORE

Jul 12, 2020 in Node-js by Niroj
• 82,880 points
6,246 views
0 votes
1 answer

How to create a directory if it doesn't exist using Node.js?

Hello @kartik, Try: var fs = require('fs'); var dir = ...READ MORE

Jul 9, 2020 in Node-js by Niroj
• 82,880 points
6,102 views
0 votes
1 answer

How to include route handlers in multiple files in Express?

Hello @kartik, If you want to put the routes ...READ MORE

Jul 15, 2020 in Node-js by Niroj
• 82,880 points
5,785 views
0 votes
1 answer

How to create .pem files for https web server?

Hello @kartik, The two files you need are ...READ MORE

Sep 7, 2020 in Node-js by Niroj
• 82,880 points
3,333 views
+1 vote
1 answer

How to make external HTTP requests with Node.js ?

Hello @kartik, Use this: var http = require('http'); var options ...READ MORE

Oct 12, 2020 in Node-js by Niroj
• 82,880 points
1,797 views
0 votes
1 answer

TypeError: Cannot read property 'confvar' of undefined

Hello @kartik, You need module.exports: An object which is shared ...READ MORE

Oct 13, 2020 in Node-js by Niroj
• 82,880 points
1,735 views
0 votes
1 answer

How to just run post-install?

Hello @kartik, You can run individual script entries ...READ MORE

Oct 13, 2020 in Node-js by Niroj
• 82,880 points
1,683 views
0 votes
1 answer

How to set custom favicon in Express?

Hello @kartik,  Just use: app.use('/favicon.ico', express.static('images/favicon.ico')); OR In express: //you probably ...READ MORE

Jul 17, 2020 in Node-js by Niroj
• 82,880 points
5,441 views
0 votes
1 answer

How to save a stream into multiple destinations with Gulp.js?

Hello @kartik, Currently you have to use two ...READ MORE

Oct 14, 2020 in Node-js by Niroj
• 82,880 points
1,437 views
0 votes
1 answer

How do I install node-sass using VSCode?

Hello @ Ebuka, Here is the following things you ...READ MORE

Jul 14, 2020 in Node-js by Niroj
• 82,880 points
5,279 views
0 votes
1 answer

How to split and modify a string in NodeJS?

Hello @kartik, Use split and map function: var str = "123, 124, 234,252"; var ...READ MORE

Oct 16, 2020 in Node-js by Niroj
• 82,880 points
1,151 views
0 votes
1 answer

How to rendering HTML in variable using Jade?

Hello @kartik, Code buffered by = is escaped ...READ MORE

Oct 14, 2020 in Node-js by Niroj
• 82,880 points
1,162 views
0 votes
1 answer

How to reload or re-render the entire page using AngularJS?

Hello @kartik< For the record, to force angular ...READ MORE

Jul 15, 2020 in Node-js by Niroj
• 82,880 points
5,094 views
0 votes
1 answer

How to implement a writable stream?

Hello @kartik, to create a writeable stream is ...READ MORE

Oct 13, 2020 in Node-js by Niroj
• 82,880 points
1,191 views
0 votes
1 answer

How to use MongoDB with promises in Node.js?

Hello @kartik, Try this: var MongoClient = require('mongodb').MongoClient var url ...READ MORE

Oct 12, 2020 in Node-js by Niroj
• 82,880 points
1,259 views
0 votes
1 answer

How to get the available tasks list in gulp?

Hello @kartik,  I got it use the gulp --tasks in ...READ MORE

Oct 13, 2020 in Node-js by Niroj
• 82,880 points
1,110 views
0 votes
1 answer

Error:Nodejs cannot find installed module on Windows

Hello @kartik, Add an environment variable called NODE_PATH and set ...READ MORE

Jul 15, 2020 in Node-js by Niroj
• 82,880 points
4,851 views
0 votes
1 answer

How can I pretty-print JSON using node.js?

Hello @kartik, JSON.stringify's third parameter defines white-space insertion ...READ MORE

Jul 12, 2020 in Node-js by Niroj
• 82,880 points
4,957 views
0 votes
1 answer

How to create an Excel File with Nodejs?

Hello @kartik, Just create a file with Tabs ...READ MORE

Sep 7, 2020 in Node-js by Niroj
• 82,880 points
2,445 views
0 votes
1 answer

Error:nvm is not compatible with the npm config "prefix" option:

Hello @kartik, After installing nvm using brew, create ~/.nvm directory: $ ...READ MORE

Jul 15, 2020 in Node-js by Niroj
• 82,880 points
4,746 views
0 votes
1 answer

How to get “should.be.false” syntax pass jslint?

Hello @kartik, You can add /*jshint expr: true*/ to the ...READ MORE

Oct 16, 2020 in Node-js by Niroj
• 82,880 points
689 views
0 votes
1 answer

Error:npm WARN package.json: No repository field

Hello @kartik, It's just a check as of NPM ...READ MORE

Jul 20, 2020 in Node-js by Niroj
• 82,880 points
4,489 views
0 votes
1 answer

How to automate npm and bower install with grunt?

Hello @kartik, To install client side components during npm ...READ MORE

Oct 13, 2020 in Node-js by Niroj
• 82,880 points
730 views
0 votes
1 answer

How to deploy node app that uses grunt to heroku?

Hello @kartik, npm has a support for a postinstall step ...READ MORE

Oct 14, 2020 in Node-js by Niroj
• 82,880 points
654 views