安裝treeJS步驟
1下載treejs安裝包在vc里面打開,
examples繼承終端里面打開
(1)報警問題
npm install yarn報警:下載node.js安裝包安裝重啟VC
npm install 安裝依賴庫報警:看提示如果顯示版本需要7以上執(zhí)行下面的命令:
npm install uuid@7.0.3 -g
報警
npm ERR! code ECONNRESET
npm ERR! syscall read
npm ERR! errno ECONNRESET
npm ERR! network request to https://registry.npmjs.org/uuid failed, reason: read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. ?See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! ? ? C:\Users\gonglinjin\AppData\Local\npm-cache\_logs\2023-03-15T05_56_11_627Z-debug-0.log
卻換源:
npm install --registry=https://registry.npm.taobao.org
npm run dev跑treeJS