2019-12-05

2019-12-05  本文已影响0人  我就是我2017

如何建立一个Scratch服务器

1、从github上下载源代码

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

2、进入scratch-www目录,先安装依赖

npm install安装

3、npm有两个包不能安装,要使用淘宝的cnpm程序安装

cnpm安装:npm install -g cnpm --registry=https://registry.npm.taobao.org

4、安装两个包:

(1)chromedriver cnpm install chromedriver

(2) 提示sass不支持你的系统

使用cnpm安装cnpm i node-sass -D

它会下载源代码并编译

5、使用npm start 发布应用 可以本机访问

上一篇 下一篇

猜你喜欢

热点阅读