摘要:
說明本地存在多個(gè)版本。 可以通過命令查看 pnpm 所在位置: where pnpm 回顯: C:\Program Files\nodejs\pnpm C:\Program Files\nodejs\pnpm.cmd C:\Users\Administrator\AppData\Local\pnpm
閱讀全文
posted @ 2025-06-01 10:01
死宅程序員
閱讀(188)
推薦(0)
摘要:
使用 Vue3 + Pinia + PNPM + Vite 開發(fā)一個(gè)前端項(xiàng)目時(shí),運(yùn)行preview,報(bào)錯(cuò): pinia Cannot read properties of undefined (reading '_s') 報(bào)錯(cuò)的代碼是壓縮后的: function we(e, t, n) { let
閱讀全文
posted @ 2023-10-24 21:40
死宅程序員
閱讀(1306)
推薦(0)
摘要:
背景 在一個(gè) ts 工程引入 @carbon/web-components的bx-input組件時(shí),編譯報(bào)錯(cuò): import '@carbon/web-components/es/components/input/input.js'; 解決 經(jīng)查,typescript 4.0 中會爆出這個(gè)問題Pro
閱讀全文
posted @ 2023-03-15 15:08
死宅程序員
閱讀(107)
推薦(0)
摘要:
背景 用 Vue3 + Electron 開發(fā)了個(gè) PDF 自由合并客戶端。 客戶端側(cè)代碼慢慢膨脹,于是想將默認(rèn)的路徑src/background.js調(diào)整到 electron/background.js。 于是修改了: vue.config.js pluginOptions: { electron
閱讀全文
posted @ 2022-12-07 00:11
死宅程序員
閱讀(1071)
推薦(0)
摘要:
問題 Nodejs 工程下,用 sequelize 向一個(gè)現(xiàn)有的 MySQL 數(shù)據(jù)庫中初始化數(shù)據(jù)時(shí)報(bào)錯(cuò),如題: original: Error: Unknown storage engine 'InnoDB' ENV MySQL 5.6 Sequelize: ^6.25.5 排查 查看 mysql
閱讀全文
posted @ 2022-11-21 00:07
死宅程序員
閱讀(123)
推薦(0)
摘要:
npm install -g @vue-cli vue create vue3-electron vue add electron-builder yarn add electron yarn add bootstrap@next yarn electron:serve
閱讀全文
posted @ 2022-10-22 01:13
死宅程序員
閱讀(52)
推薦(0)
摘要:
我有個(gè)model總報(bào)錯(cuò): 2022-10-17 00:22:15: log add: MongooseError: Operation `logs.insertOne()` buffering timed out after 10000ms 0|tinyurl | at Timeout.<anony
閱讀全文
posted @ 2022-10-17 00:32
死宅程序員
閱讀(537)
推薦(0)
摘要:
我開發(fā)的一個(gè)火狐 addon,在上架時(shí)總是出現(xiàn)警告,其中不少是與 innerHTML有關(guān): Unsafe assignment to innerHTML 警告: Due to both security and performance concerns, this may not be set us
閱讀全文
posted @ 2022-02-19 15:41
死宅程序員
閱讀(107)
推薦(0)
摘要:
Env CentOS 7.x Nodejs 8.x 操作 通過npm config list 查看配置,沒有自定義設(shè)置 npm config get prefix 看到了路徑指向:/root/node_modules 不過這個(gè)路徑根本沒有 node_modules 文件夾 通過重新安裝全局依賴包,并
閱讀全文
posted @ 2022-01-18 11:06
死宅程序員
閱讀(1340)
推薦(0)
摘要:
TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function at promisify (internal/util.js:214:11) at Object.<anonymous> (/root
閱讀全文
posted @ 2022-01-18 10:28
死宅程序員
閱讀(3295)
推薦(1)