c5454
c5454
  • 发布:2023-09-28 10:10
  • 更新:2023-11-16 09:44
  • 阅读:1149

npx @dcloudio/uvm alpha 更新报错

分类:uni-app

(node:20080) UnhandledPromiseRejectionWarning: Error: Not find version: 3.91.2023092719-alpha
at find (C:\Users\caiyi\AppData\Local\npm-cache_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\lib\version.js:100:11)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async start (C:\Users\caiyi\AppData\Local\npm-cache_npx\f06a30b2e514f95e\node_modules\@dcloudio\uvm\bin\index.js:16:19)
(Use node --trace-warnings ... to show where the warning was created)
(node:20080) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:20080) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

2023-09-28 10:10 负责人:无 分享
已邀请:
DCloud_UNI_GSQ

DCloud_UNI_GSQ

HBuilderX 开始使用了新的版本规则。重新执行如下命令进行更新:

npx @dcloudio/uvm@latest alpha
  • c5454 (作者)

    可以升级,升级后

    try {

    uni.setStorageSync('storage_key', 'hello');

    } catch (e) {

    // error

    }


    缓存api出问题了,无法存储

    使用这个就可以uni.setStorage

    2023-09-28 17:00

l***@163.com

l***@163.com

进入\Users\User\AppData\Local\npm-cache_npx\目录下,把f06a30b2e514f95e目录强制删除,再执行npx @dcloudio/uvm alpha,有效

要回复问题请先登录注册