请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

用vscode搭建uni-app的开发环境

在智谱清言里输入如下提示词:

你是一名资深的uni-app开发工程师,请告诉我怎么用vscode搭建uni-app的开发环境。

按照提示的步骤,在执行这个步骤的时候报错

C:\Users\xxx\test>vue create -p dcloudio/uni-preset-vue my-uni-app

Fetching remote preset dcloudio/uni-preset-vue...

(node:38880) [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: getaddrinfo ENOENT github.com

RequestError: getaddrinfo ENOENT github.com

    at ClientRequest.<anonymous> (C:\Users\xxx\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\got\index.js:182:22)

    at Object.onceWrapper (node:events:633:26)

    at ClientRequest.emit (node:events:518:28)

    at emitErrorEvent (node:_http_client:103:11)

    at TLSSocket.socketErrorListener (node:_http_client:506:5)

    at TLSSocket.emit (node:events:518:28)

    at emitErrorNT (node:internal/streams/destroy:170:8)

    at emitErrorCloseNT (node:internal/streams/destroy:129:3)

    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

这个问题怎么处理呢



正在回答 回答被采纳积分+3

2回答

申悦 2024-11-17 14:55:29

看报错信息,我猜是因为你的网络无法翻墙请求到GitHub网站,需要找个镜像

0 回复 有任何疑惑可以回复我~
申悦 2024-11-17 14:54:12

你可以把这些报错信息全部复制粘贴给智谱清言,或者发给通义灵码,它们会告诉你答案😊

0 回复 有任何疑惑可以回复我~

相似问题

登录后可查看更多问答,登录/注册

问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号