- 准备工作
npm install -g npm /* npm升级到最新版本 /
npm install -g n / nodejs升级 /
n stable / 升级到最新的稳定版本 */
-
mkdir scratch /便于管理,新建一个文件夹存放/
cd scratch
git clone github.com/LLK/scratch… /scratch-gui下载/
git clone github.com/LLK/scratch… /scratch-vm下载/
git clone github.com/LLK/scratch… /scratch-blocks下载/ -
也可以直接从 github.com/LLK 这个地址内下载对应的文件,然后解压到对应的目录下.
- 配置scratch
-
cd scratch-vm
npm install
npm link
npm run watch -
cd ../scratch-blocks
npm install
npm link -
cd ../scratch-gui
npm install
npm link scratch-vm scratch-blocks
npm install
npm start
-
异常问题:由于node版本升级的比较高,scratch-blocks的时候报了个异常.
- 异常:error:0308010C:digital envelope routines::unsupported。
处理方法: blog.csdn.net/Nikoye/arti…
环境变量配置好了之后需要更新一下,另外重启终端.