GithubHelp home page GithubHelp logo

yvonnehayes / install-node Goto Github PK

View Code? Open in Web Editor NEW

This project forked from billyham/install-node

0.0 2.0 0.0 14 KB

Lab 00: Install node from source, and learn to submit an assignment the 401 way!

JavaScript 100.00%

install-node's Introduction

Code Fellows lab-00-install-node

Objectives

  • Install node from source
  • Sumbit this an assignment the 401 way

Install node from Source

Out with the old

First type which node && which npm if you get anything other than a blank line you already have node installed and need to remove it.

If you used the node installer from their website use these commands:

sudo rm -rf $(which node)
sudo rm -rf $(which npm)
sudo rm -rf ~/.node
sudo rm -rf ~/.npm

Now if you type which node && which npm you should have a blank line.

In with the new

These instructions will help you install the latest version of node in a way the prevents you from needing root to install global packages. You will need curl, python v2.x a C compiler(gcc or clang) and make installed. These can be obtained through whatever package manager your operating system uses (homebrew on Mac, apt-get on Ubuntu, etc).

curl -O https://nodejs.org/dist/latest/node-v6.1.0.tar.gz
tar -vxzf node-v6.1.0.tar.gz
cd node-v6.1.0
./configure --prefix=$HOME/.node
make && make install

These commands will download the latest stable version of node (currently 6.1.0) configure it to install into a .node folder in your home directory and will then compile it from source. Next you need to tell your shell to look for the node command in $HOME/.node/bin

On Linux:

echo "export PATH=$HOME/.node/bin:$PATH" >> ~/.bashrc
echo "export NODE_PATH=$HOME/.node/lib/node_modules" >> ~/.bashrc
source ~/.bashrc

On Mac:

echo "export PATH=$HOME/.node/bin:$PATH" >> ~/.bash_profile
echo "export NODE_PATH=$HOME/.node/lib/node_modules" >> ~/.bash_profile
source ~/.bash_profile

If you now enter the command node --version you should see v6.1.0

How code assignments will be sumbitted

All coding assignments in the 401 class will be submitted through a pull request to the assignment repository of the class organization.

Each Code Assignment (Lab/Homework/ect) will have a unique repository with a README.md with the instructions for the assignment. Any special materials needed for the assignment will be included in the assignment repository.

For each assignment you will fork the assignment repository, git clone your fork onto your computer.

Make a directory named with your name, do all of the work for the assignment in that directory. As you work in your fork: use branches, write meaningful commit messages, and follow good git pratices.

When you are ready to submit your assigmnet you will make a pull request from the master-branch of your GitHub fork to the master-branch of the original Assignment. Then submit the url of your pull request into canvas as the assignment submission.

Submit a pull request with a hello world program

The final instruction for this assignment is to write a hello world program, and submit it by following the previous instructions.

  • Fork this repository
  • Clone your fork
  • Make a directory named yourname
  • Crate a branch named yourname-helloworld
  • In the directory with your name make a javascript file called helloworld.js
  • In helloworld.js write
console.log('hello, <your name>');
  • run the program by typing node helloworld.js in your shell
    • if you get an error, fix you code before you submit!
    • if the program runs with out errors:
      • merge changes into master
      • push it up to github
      • create a pull request to this assignment from your fork.

install-node's People

Contributors

martypdx avatar yvonnehayes avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.