安裝npm
brew install node
npm可能出現(xiàn)的錯誤
npm ERR! code MODULE_NOT_FOUND
image.png
先執(zhí)行了 rm -rf /usr/local/lib/node_modules/npm屈芜,然后重新下載node安裝包,重新安裝。
安裝asar 這個主要是解壓app.asar 文件的
npm install asar -g
破解
- 官網(wǎng)下載并安裝StarUML http://staruml.io/
- 進入目錄/Applications/StarUML.app/Contents/Resources
- 解壓文件 終端輸入asar extract app.asar app
- 修改js文件 vim app/src/engine/license-manager.js
checkLicenseValidity () {
this.validate().then(() => {
setStatus(this, true)
}, () => {
setStatus(this, true)
// UnregisteredDialog.showDialog() 將此行注釋
})
}
- 重新打包app文件夾asar pack app app.asar
打開應用