On this page... (hide)
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)
(on windows, at least) Just run the latest installer.
Can use Chocolatey:
cinst nodejs.install to install 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.
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).
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.
Installation instructions say to use an included
.cmd file to launch, but I found it tried to launch PUTTY for no reason I could see (in the, say, 30 seconds I spent worrying about it).
However, the following worked:
- launch windows shell
- cd to
UPDATE: (a few minutes later) As I wrote the above, I was slightly suspicious, as the upper-left of the launched nodejs instance looked like the putty logo.
I looked at the source code, and saw that it had an INVARIANT launch of putty if the environment was windows (which mine is).
I tried the
.cmd file a second time, and it launched fine.
Not sure what happened the first time around.
I _should have_ grabbed a screencap.
Learn Node.js Completely and with Confidence - book recommendations and pace of study based on them
- Learn You the Node.js For Much Win!
- Learn you the Node.Js workshop notes
- Stream Adventure
- Level Me Up Scotty
http://substack.net/shared_rendering_in_node_and_the_browser - that is, browserify