Node.js is a runtime environment and a library for running applications written in JavaScript.
For usage and a list of node commands and their functions, type:
node --help
Also included with Node.js is the Node Package Manager (npm). Npm installs different dependency packages for your project.
For usage and a list of npm commands and their functions, type:
npm help
Simple steps to get started:
turbo run nodejs/nodejs-lts
Now the node
and npm
commands are available:
node help
npm help
Here's a short example that will show you how to create a Spoon container for Express, a project with a Node.js dependency.
# Start a container with git and node
turbo run git,nodejs-lts
# In the container, clone the Express project
> git clone https://github.com/strongloop/express.git
# Install Node dependencies with Node package manager
> cd express && npm install
# Start the server with any of the examples
> node examples/auth
Open a browser to http://localhost:3000
and test out the Node server!
No release notes
This repository does not have an EULA
Actions
Go to TurboScript