Kbone——創建項目報錯 name can no longer contain capital letters


前言

打算重構小程序,選擇了kbone,初始化創建項目出現了問題~
報錯如下:

D:\wamp\www\TIMSDK>kbone init KboneIM
? 請選擇開發小程序或 Web 的技術棧 Vue
Kbone CLI 正在啟動...
Kbone CLI 即將執行 init 命令...
Could not create a project called "KboneIM" because of npm naming restrictions:
  *  name can no longer contain capital letters

步驟

其實這是因為命名中包含了大寫字母,所以我們重命名即可。

D:\wamp\www\TIMSDK>kbone init kbone-im
? 請選擇開發小程序或 Web 的技術棧 Vue
Kbone CLI 正在啟動...
Kbone CLI 即將執行 init 命令...
Kbone CLI 即將創建一個新的應用在 D:\wamp\www\TIMSDK\kbone-im
正在安裝依賴: 你可以使用 ctrl + c 退出,然后自行安裝。

npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of
 core-js@3.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[ .................] / fetchMetadata: sill pacote range manifest for p-locate@^4.1.0 fetched in 3294ms


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM