Tag: c

49 votes
30 answers
469 views
How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)

My version of node is always v0.6.1-pre even after I install brew node and NVM install v0.6.19. My node versi

avatar
Elicia
0 1 0 9
asked 07 September, 2021
60 votes
12 answers
2.4K views
What is the purpose of Node.js module.exports and how do you use it?

What is the purpose of Node.js module.exports and how do you use it? I can't seem to find any information

avatar
Benton
0 1 0 9
asked 07 September, 2021
47 votes
30 answers
3K views
How do I debug Node.js applications?

How do I debug a Node.js server application? Right now I'm mostly using alert debugging with print state

avatar
Virgil
0 1 0 9
asked 07 September, 2021
53 votes
19 answers
3.1K views
Writing files in Node.js

I've been trying to find a way to write to a file when using Node.js, but with no success. How can I do t

avatar
Majorie
0 1 0 9
asked 07 September, 2021
55 votes
12 answers
2.4K views
Do I commit the package-lock.json file created by npm 5?

npm 5 was released today and one of the new features include deterministic installs with the creation of a pac

avatar
Dusty
0 1 0 9
asked 07 September, 2021
56 votes
27 answers
864 views
Using async/await with a forEach loop

Are there any issues with using async/await in a forEach loop? I'm trying to loop through an array of fil

avatar
Robt
0 1 0 9
asked 07 September, 2021
59 votes
17 answers
2.1K views
57 votes
14 answers
2.2K views
What's the difference between dependencies, devDependencies and peerDependencies in npm package.json file?

This documentation answers my question very poorly. I didn't understand those explanations. Can someone s

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
64 votes
30 answers
1.8K views
Find the version of an installed npm package

How to find the version of an installed node.js/npm package? This prints the version of npm itself: npm -v &

avatar
Omar
0 1 0 9
asked 07 September, 2021
65 votes
30 answers
1K views
How do I pass command line arguments to a Node.js program?

I have a web server written in Node.js and I would like to launch with a specific folder. I'm not sure ho

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
56 votes
19 answers
2.9K views
What's the difference between tilde(~) and caret(^) in package.json?

After I upgraded to the latest stable node and npm, I tried npm install moment --save. It saves the entry in t

avatar
Roger
0 1 0 9
asked 07 September, 2021
54 votes
19 answers
2.1K views
How to use a keypress event in AngularJS?

I want to catch the enter key press event on the textbox below. To make it more clear I am using a ng-repeat t

avatar
Rudy
0 1 0 9
asked 07 September, 2021
56 votes
21 answers
495 views
AngularJS : How to watch service variables?

I have a service, say: factory('aService', ['$rootScope', '$resource', function

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
57 votes
27 answers
1.5K views
Way to ng-repeat defined number of times instead of repeating over array?

Is there a way to ng-repeat a defined number of times instead of always having to iterate over an array? For

avatar
Keila
0 1 0 9
asked 07 September, 2021
58 votes
5 answers
2.6K views
AngularJS ng-click stopPropagation

I have a click Event on a table row and in this row there is also a delete Button with a click Event. When i c

avatar
Chaya
0 1 0 9
asked 07 September, 2021
58 votes
8 answers
2.6K views
How to display length of filtered ng-repeat data

I have a data array which contains many objects (JSON format). The following can be assumed as the contents o

avatar
Denese
0 1 0 9
asked 07 September, 2021
54 votes
18 answers
1K views
AngularJS 1.2 $injector:modulerr

When using angular 1.2 instead of 1.07 the following piece of code is not valid anymore, why? 'use stric

avatar
Virgil
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
904 views
Working with select using AngularJS's ng-options

I have read about it in other posts, but I couldn't figure it out. I have an array, $scope.items = [

avatar
Corrin
0 1 0 9
asked 07 September, 2021
59 votes
11 answers
791 views
Watch multiple $scope attributes

Is there a way to subscribe to events on multiple objects using $watch E.g. $scope.$watch('item1, item2

avatar
Karolyn
0 1 0 9
asked 07 September, 2021
60 votes
19 answers
2.5K views
What's the correct way to communicate between controllers in AngularJS?

What's the correct way to communicate between controllers? I'm currently using a horrible fudge inv

avatar
Lashawna
0 1 0 9
asked 07 September, 2021