Fix npm link step in "npm run start:dev" && "npm run build:console" #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PULL REQUEST
說明 (Description)
npm version >= 7.x 時, npm link 會成為 Global link。所以在開發時重新 link 時,需要先 unlink 才能刪除 dist/。
貢獻種類 (Type of change)
測試環境 (Test Configuration):
檢查清單 (Checklist):
我已完成以上清單,並且同意遵守 Code of Conduct
I have completed the checklist and agree to abide by the code of conduct.
--bin-links預設為 true,補上僅提供參考@ -13,0 +16,4 @@console.log('[*] exec spawnSync: npm unlink -g')const npmUnlink = spawnSync('npm', ['unlink', '-g'])// console.log(`[=] stdout: ${npmUnlink.stdout}`)// console.log(`[x] stderr: ${npmUnlink.stderr}`)這個不拿掉嗎?
@ -13,0 +16,4 @@console.log('[*] exec spawnSync: npm unlink -g')const npmUnlink = spawnSync('npm', ['unlink', '-g'])// console.log(`[=] stdout: ${npmUnlink.stdout}`)// console.log(`[x] stderr: ${npmUnlink.stderr}`)debug 能用