LoginSignup
2
3

More than 3 years have passed since last update.

【M1ソフトウェア導入】Homebrew-node.js-npm

Last updated at Posted at 2021-03-17

早速

●homebrew

M1 Macでのhomebrewは 公式のドキュメント で /opt/homebrew にインストールすることが推奨されている為、以下のような工程でインストールを行う。

install.homebrew
sudo mkdir /opt/homebrew
sudo chown -R $(whoami) /opt/homebrew
curl -L https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C /opt/homebrew
//パスを通す
export PATH="/opt/homebrew/bin:$PATH"
//brew installの確認
brew doctor
//バージョンの確認
brew --version

●node.js

install.nodejs
brew install node

//installの確認
node -v

●npm

install.nodejs
npm install -g npm

//installの確認
npm -v

json-server install and --watch

install.jason-server
npm install -g json-server

//--watch
json-server --watch xxxxx.json

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3