linux 安装three.js
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