From xradiograph

NodeJs: node.js

On this page... (hide)

  1. 1. node js
    1. 1.1 upgrading & installation
    2. 1.2 npm installation
  2. 2. link dump
  3. 3. Shell Scripting
  4. 4. REPL (Read Eval Print Loop)
  5. 5. Learning
  6. 6. package.json
  7. 7. See Also
  8. 8. Tags

1.   node js


Some notes I’ve seen say to install the 32 bit version on a 64bit system. In some cases, because IIS Express only ships as 32bit. But if you’re not using IIS (Express), can you use 64bit?


I ended up using these notes and not integrating with IIS (yet?).


Since I’m working in Emacs, I’ve been updating notes @ EmacsWiki:NodeJs


I’ve installed node and js-comint, but tab-completion is not supported. Nor in swank-js, AFAIK (which I haven’t tried yet)


As of Dec 2017 I’ve started using JS Code? for Node development. I miss a lot of my Emacs customizations, but the other seamless integrations make up for it.



1.1   upgrading & installation

(on windows, at least) Just run the latest installer.


Can use Chocolatey: cinst nodejs.install to install node and npm, cup nodejs.install -y to upgrade both Node and npm


Do NOT run cinst nodejs - Chocolately’s nodejs is an alias for nodejs.commandline which simply installs Node.exe to the Chocolatey folder. Does not include NPM.


Once node and npm are installed, running npm i -g npm will update npm (or you can update Node and npm together; see aboe).


1.2   npm installation

If you’re getting a Error: No compatible version found: [foo@’^n.n.n’] you may need to update to the latest version of node and npm (see above).



2.   link dump



3.   Shell Scripting


Write your shell scripts in JavaScript, via Node.js

other posts on js-shell-scripting

Transforming HTML with Node.js and jQuery
New Node.js module “lazylines”: read a text stream, line by line


task automation


Parsing text files using node.js


See also: Jake, JavaScript.ShellScripting



4.   REPL (Read Eval Print Loop)
How do I use node’s REPL?


There are a few special REPL commands:

.break - While inputting a multi-line expression, sometimes you get lost or just don’t care about completing it. .break will start over.
.clear - Resets the context object to an empty object and clears any multi-line expression.
.exit - Close the I/O stream, which will cause the REPL to exit.
.help - A:Show this list of special commands.



5.   Learning

Learn Node.js Completely and with Confidence - book recommendations and pace of study based on them - provides (via npm) four command-line based “lesson plans” (here’s a review)

  1. Learn You the Node.js For Much Win!
  2. Stream Adventure
  3. Level Me Up Scotty
  4. Functional Javascript



6.   package.json



7.   See Also




8.   Tags

JavaScript shell scripting serverside

Retrieved from
Page last modified on January 02, 2018, at 08:29 PM