- 发布:2024-01-02 11:54
- 更新:2024-01-02 12:00
- 阅读:336
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win11
手机系统: 全部
手机厂商: 华为
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: CLI
CLI版本号: 5.0.8
测试过的手机:
操作步骤:
vue create -p dcloudio/uni-preset-vue my-project
vue create -p dcloudio/uni-preset-vue my-project
预期结果:
正常安装
正常安装
实际结果:
Fetching remote preset dcloudio/uni-preset-vue...
(node:12884) [DEP0040] DeprecationWarning: The punycode
module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ...
to show where the warning was created)
ERROR Failed fetching remote preset dcloudio/uni-preset-vue:
ERROR RequestError: socket hang up
RequestError: socket hang up
at ClientRequest.<anonymous> (C:\Users\Admin\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\got\index.js:182:22)
at Object.onceWrapper (node:events:634:26)
at ClientRequest.emit (node:events:519:28)
at TLSSocket.socketOnEnd (node:_http_client:519:9)
at TLSSocket.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Fetching remote preset dcloudio/uni-preset-vue...
(node:12884) [DEP0040] DeprecationWarning: The punycode
module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ...
to show where the warning was created)
ERROR Failed fetching remote preset dcloudio/uni-preset-vue:
ERROR RequestError: socket hang up
RequestError: socket hang up
at ClientRequest.<anonymous> (C:\Users\Admin\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\got\index.js:182:22)
at Object.onceWrapper (node:events:634:26)
at ClientRequest.emit (node:events:519:28)
at TLSSocket.socketOnEnd (node:_http_client:519:9)
at TLSSocket.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
bug描述:
Fetching remote preset dcloudio/uni-preset-vue...
(node:12884) [DEP0040] DeprecationWarning: The punycode
module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ...
to show where the warning was created)
ERROR Failed fetching remote preset dcloudio/uni-preset-vue:
ERROR RequestError: socket hang up
RequestError: socket hang up
at ClientRequest.<anonymous> (C:\Users\Admin\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\got\index.js:182:22)
at Object.onceWrapper (node:events:634:26)
at ClientRequest.emit (node:events:519:28)
at TLSSocket.socketOnEnd (node:_http_client:519:9)
at TLSSocket.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
1 个回复
蛋炒太阳 (作者)
刚发出来就能安装了