linux环境下scratch-www源码开发环境搭建

    技术2022-07-10  130

    linux环境下scratch-www源码开发环境搭建

    1 安装

    1.1 准备工作  (建议下载npm包安装,版本最好在 5 以上)

    /* git, npm, nodejs工具准备 */ /* Linux下安装指令 */ sudo apt-get install npm sudo apt-get install nodejs sudo apt-get install git /* 对版本要求较高,需升级 */ npm install -g npm /* npm升级到最新版本 */ npm install -g n /* nodejs升级 */ n stable /* 升级到最新的稳定版本 */

    1.2 从github下载scratch-www的gui源码

    git clone https://github.com/LLK/scratch-www.git

    1.3 下载相关包得到node_modules文件

    进入到从git下载的工程文件

    // 进入到下载的文件夹下scratch-gui cd scratch-www // 编译 npm install  

    得到build文件夹,每次编译都会重新生成

    npm run build  

    1.5 运行

    运行程序

    make translations npm start

    1.6 访问测试

    打开浏览器:[http://localhost:8333 ]

    2 相关参考网址

    环境配置参考链接: [https://www.jianshu.com/p/7d1ec05db983] scratch-www工程配置参考链接:[https://www.jianshu.com/p/7d1ec05db983]

    Processed: 0.010, SQL: 9