3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

win10でJS開発環境構築 chocolatey, node.js, mongodb..etc

Last updated at Posted at 2018-12-29

#概要
windows10マシンを買ったので開発環境を1から構築したときのメモ

環境

  • surface pro 6
  • windows10 home

1. Chocolatey : package manager

Install Chocolatey

インストール確認

command-or-powershell

>choco -v
0.10.11

2. Mongodb 4

参考

install and confg mongodb

install, setup

command-admin
# install
> cinst mongodb

# make dir
> cd /
> md \data\db

# test Run Server
> cd C:\Program Files\MongoDB\Server\4.0\bin
> mongod

#tet run Cmd
> cd C:\Program Files\MongoDB\Server\4.0\bin
> mongo

mongodb: pathを通す

windowsの環境変数Pathへの登録

  • システムプロパティ>詳細設定>環境変数>Path>編集
  • 「C:\Program Files\MongoDB\Server\4.0\bin」を追加

3. 周辺ツールcurl, wget, etc..

Install curl,wget

cmd.exe(Admin)

> cinst curl wget -y

不要なエイリアス削除


> notepad $profile
---
#Alias
del alias:curl
del alias:wget
---

powershell 権限変更

powershell(Admin)

>Set-ExecutionPolicy RemoteSigned

Install 確認(version)

vscode-terminal
> curl --version
> wget --version

#4. Git for windows

cmd.exe(admin)
# install by choco
> cinst git
# reload env
> refreshenv
# test Git
> git --version

config: CRLFへの自動変換無効化

> git config --global core.autoCRLF false

5. NVM, Node.js, yarn, windows-build-tools

cmd.exe(admin)
# install by choco
> cinst nvm -y
# install node.js v.11
> nvm list available
# Install LTS(latest)
> nvm install 10.15.0
# Show installed node.js list
> nvm list
    10.15.0
> nvm use 10.15.0

# Yarn 
> npm install -g yarn
> yarn -v

# Windows Build tools
>npm install -g --production windows-build-tools

6. VSCode

本体

vscode: Vue.js Extension Pack

参考
VSCode+Vue.jsを使用するならインストールするべき拡張機能と設定

  • Vue.js Extension Pack をインストール
3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?