Difference between revisions of "My Node.js notes"

From Got Opinion Wiki
Jump to navigation Jump to search
m (added footer)
m (add npm section)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''My Node.js notes'''
== Node.js Package Manager (npm)==
 
[https://www.npmjs.com/ npm]
 
Initialize an npm project. Within project directory use <code>npm init</code> command. The default command launches a questionnaire. To answer default on all questions use -y argument.
 


== Basic stuff ==
== Basic stuff ==
debugger statement and <code>node inspect</code>
<pre>chrome:://inspect</pre>
Exit Chrome DevTool debugger.
Type <code>restart</code> at console after exiting Chrome DevTool to restart app with same arguments.
Press CTRL+C twice to exit debugger in console.


== Resources ==
== Resources ==

Revision as of 16:18, 17 March 2019

Node.js Package Manager (npm)

npm

Initialize an npm project. Within project directory use npm init command. The default command launches a questionnaire. To answer default on all questions use -y argument.


Basic stuff

debugger statement and node inspect

chrome:://inspect

Exit Chrome DevTool debugger.

Type restart at console after exiting Chrome DevTool to restart app with same arguments.

Press CTRL+C twice to exit debugger in console.

Resources

Node.js home

To software notes