npm install three

报错:

npm ERR! network timeout at: https://registry.npmjs.org/three npm

ERR! A complete log of this run can be found in:

执行:

step1.

npm config set registry https://registry.npmmirror.com/
 step2.

npm install three
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN threeTest@1.0.0 No description
npm WARN threeTest@1.0.0 No repository field.

+ three@0.168.0
added 1 package from 1 contributor in 6.516s


   输出:╭────────────────────────────────────────────────────────────────╮
   │                                                                │
   │      New major version of npm available! 6.14.4 → 10.8.3       │
   │   Changelog: https://github.com/npm/cli/releases/tag/v10.8.3   │
   │               Run npm install -g npm to update!                │
   │                                                                │
   ╰────────────────────────────────────────────────────────────────╯

vsode开发

安装live server

右键没有Open with Live Server  参考vsCode中live server插件的安装及使用_live server能和deno同时运行吗-CSDN博客

记住快捷键alt+l 或alt+o

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐