webssh
webssh copied to clipboard
这个项目可以自己编译打包使用吗?
执行sh build.sh 得到如下提示
main.go:19:12: pattern web/dist/*: no matching files found
要先编译前端出来dist目录,再来打包的
ubuntu下打包报错
(base) root@hello:/home/hello/ydd_go/webssh/web# npm run build
> [email protected] build
> vue-cli-service build
⠹ Building legacy bundle for production...
ERROR Failed to compile with 1 error 14:41:59
error in ./src/App.vue?vue&type=script&lang=js&
Syntax Error: TypeError: Cannot read property 'name' of null
打包命令已经修改为ubuntu能用的,修复部分为:
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint"
},
这个和vue-cli,node,npm的版本有关系吗,有指定哪些版本打包吗?