laya2 Layaair2-Cmd安装流程和用法
1.问题:Layaair2-Cmd总是安装不上(本文用的layaair2.5.0版本)?
2.解决方案:
1.安装nodejs10.*的版本
2.执行如下命令:
npm install layaair2-cmd -g
npm install gulp -g
3.vscode配置tasks.json文件:
{
"version": "2.0.0",
"tasks": [
{
"label": "laya build",
"type": "shell",
"command": "layaair2-cmd",
"args": [
"compile"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}