网易内推联系我哦

网易无偿内推,点击下方【首页】置顶帖查看说明

0%

面临问题

BizCharts 中,如果原始数据的时间不联系,那么绘制的时候这些时间会缺失。

需要在 BizCharts 时间数据不足时自动补 0 确保横坐标时间连续。

data 包含 date、name、count 三个属性,最小日期取 data 的最小 date,最大日期取当天的数据,注意需要区分不同的 name 进行分组。

阅读全文 »

异常处理

出现异常

husky - Git hooks installed
Usage:
  husky install [dir] (default: .husky)
  husky uninstall
  husky set|add <file> [cmd]
npm ERR! code 2
npm ERR! path E:\code\React\hello-arco
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c husky install && husky add .husky/pre-commit 'npm run pre-commit'

处理方式

rm -rf .git/hooks  // 删除项目路径下的 .git/hooks 文件夹
npm install

For Husky v7 or greater, do the following:

# For NPM
 npm install husky@7 --save-dev \
      && npx husky-init \
      && npm exec -- github:typicode/husky-4-to-7 --remove-v4-config

# For Yarn
 yarn add husky@7 --dev \
  && npx husky-init \
  && npm exec -- github:typicode/husky-4-to-7 --remove-v4-config
# or
 yarn add husky@7 --dev \
  && yarn dlx husky-init --yarn2 \
  && npm exec -- github:typicode/husky-4-to-7 --remove-v4-config

https://stackoverflow.com/questions/66246587/how-to-fix-error-not-found-husky-run-when-committing-new-code