摘要:
在開發一個 Chrome 擴展時,依賴了element-plus。 想體驗按需加載的福利,于是借助了這個 package:unplugin-element-plus/webpack,引入方式如下 const ElementPlus = require('unplugin-element-plus/w
閱讀全文
posted @ 2021-12-28 12:16
死宅程序員
閱讀(7255)
推薦(0)
摘要:
昨天禍從天降,npm 突然沒了,不過 node 還在。查了一下,node 安裝目錄下 確實少了npm,原因未知。 那就再安裝一次 node 吧,順便把版本升到 12.x 最新:node-v12.22.7-x64.msi 從官網用迅雷順利下載后,發現安裝不了,從昨天到今天,反復嘗試多次,都是在安裝過程
閱讀全文
posted @ 2021-12-01 15:58
死宅程序員
閱讀(305)
推薦(0)
摘要:
我查閱了一些基礎資料: windows下的八三命名規則(在cmd下的dir /h中的/X里提到了這個命名): ?http://support.microsoft.com/kb/142982/zh-cn 在Windows中禁用8.3格式的文件名 http://leonax.net/p/2775/dis
閱讀全文
posted @ 2021-10-21 15:08
死宅程序員
閱讀(447)
推薦(0)
摘要:
問題 在調用微信小程序云開發下的支付接口創建訂單時,出現了這樣的錯誤響應 請求內容傳入了非UTF8參數 經查,是我在參數attach中傳遞了用戶昵稱(用于給下游的支付完成回調傳參),而其中攜帶了 emoji。 解決 將 昵稱進行 encodeURIComponent( nickName ) 處理后傳
閱讀全文
posted @ 2021-10-14 23:37
死宅程序員
閱讀(1138)
推薦(0)
摘要:
x,y: 位置 width, height: 單元格規格 color:分隔線顏色 ffmpeg -i test.png -vf "drawgrid=x=592:y=42:width=350:height=50:thickness=2:color=green" out4.png 效果
閱讀全文
posted @ 2021-08-19 18:46
死宅程序員
閱讀(346)
推薦(0)
摘要:
問題 Vite + Vue + ts 項目下,引用 .vue 報錯 vue vite ts Cannot find module or its corresponding type declarations.ts(2307) 方案 VS code 中,F1, "typescript: select
閱讀全文
posted @ 2021-08-15 00:07
死宅程序員
閱讀(6609)
推薦(0)
摘要:
修改 ts 編譯配置為 es6 即可: "compilerOptions": { "target": "es6", 參考文檔:https://stackoverflow.com/a/51860850/1185971
閱讀全文
posted @ 2021-06-23 01:18
死宅程序員
閱讀(473)
推薦(0)
摘要:
錯誤 安裝某 package 時,提示報錯: npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/inherits: Cannot read property 'pickAlgorithm'
閱讀全文
posted @ 2021-06-17 11:41
死宅程序員
閱讀(21781)
推薦(1)
摘要:
背景 我想在本地 Windows 上體驗下 Strapi (一個 headless CMS )。 本地原有的 MongoDB 版本是 v3.2.5 , 但 Strapi 對 MongoDB 版本的最低要求是 v3.6. 問題 啟動 Strapi 工程,出現錯誤: Mongodb aggregate
閱讀全文
posted @ 2021-06-02 01:38
死宅程序員
閱讀(277)
推薦(0)
摘要:
安裝后設置環境變量,path 里添加 mongo 的 bin 目錄 mongo.conf # 數據庫文件保存路徑 dbpath=D:\mongo-db # 日志保存路徑 logpath=E:\Program Files\MongoDB\logs\mongodb.log # 打開日志的輸出操作 log
閱讀全文
posted @ 2021-05-14 22:05
死宅程序員
閱讀(55)
推薦(0)