nodeをインストール
curl -L git.io/nodebrew | perl - setup
echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.profile
source ~/.profile
nodebrew
nodebrew install-binary v8.12.0
nodebrew use v8.12.0
node --version
mkdir workspace
cd workspace
npm
npm init -y
npm -g ls
npm install -g yarn
npm |
yarn |
npm install |
yarn install |
npm install パッケージ名 --save |
yarn add パッケージ名 |
npm install ーg パッケージ名 |
yarn global add パッケージ名 |
npm uninstall パッケージ名 --save |
yarn remove パッケージ名 |
npm install --save-dev eslint
node ./node_modules/eslint/bin/eslint.js --init
Use a popular style guide
Airbnb
React N
JSON
Y