一、NoteJs安装:
点击下载 | Node.js打开nodejs(https://nodejs.org/zh-cn/download/)官网下载,如下图所示,推荐.msi-64bi的,可以双击安装。
打开cmd命令窗口,录入一下命令,如下图所示,即安装成功。
npm -v
- 安装Git
安装git git官网(https://git-scm.com/download/)
- 下载scratch 3.0源代码
GitHub - LLK/scratch-gui: Graphical User Interface for creating and running Scratch 3.0 projects.
可以使用git下载:
A:下载源代码
git clone --depth=1 https://github.com/LLK/scratch-gui.git
B:安装源代码编译时需要的包
cd scratch-gui
npm install
C:编译源代码
npm run build
D:运行Scratch-GUI
npm start
如果在退出npm start命令后,还想运行,可在Scratch-gui/build目录找到已经编译好的版本,直接运行(每个人的源代码安装目录可能不一样哦),这个编译好的版本,以后就可以直接放在你的服务器上使用了。