tips-SCRATCH
scratch 3.0
https://github.com/LLK/scratch-vm
BUILD
$ git clone --depth 1 https://github.com/llk/scratch-vm.git $ git clone --depth 1 https://github.com/llk/scratch-gui.git $ cd scratch-vm $ npm i $ npm link $ cd ..\scratch-gui $ npm i $ npm link scratch-vm
$curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - $ apt update # $ sudo apt install nodejs $ apt install yarn
#$ cd scratch-vm && yarn install && yarn link ### 上記でscratch-vmの依存パッケージがダウンロードされる ### 最後にnpmのリンクに追加される。 #$ cd scratch-gui && yarn link scratch-vm && yarn install ### 上記で、scratch-vmを子供としてリンクし、ほかのパッケージをダウンロードする。 cd scratch-vm && npm install && nmp link cd scratch-gui && npm link scratch-vm && npm install
cd scratch-gui npm start
SCRATCH in debian9
$ sudo apt install nodejs #$ curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - $curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - $ apt update $ apt install yarn $ nodejs -v && npm -v $ npm init -f npm install https://github.com/LLK/scratch-gui.git cd node_modules/scratch-gui/ npm install npm start > scratch-gui@0.1.0 start /Users/kyorohiro/devDojo/scratch/w/ww/node_modules/scratch-gui > webpack-dev-server Project is running at http://0.0.0.0:8601/ webpack output is served from / Content not from webpack is served from /Users/kyorohiro/devDojo/scratch/w/ww/node_modules/scratch-gui/build webpack: wait until bundle finished: /
scrattino2
sudo apt install nodejs curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - apt update apt install yarn npm install flow-typed npm update npm upgrade npm install --no-optional