![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nodejs
断毫残墨
这个作者很懒,什么都没留下…
展开
-
typescript递归获取所有父节点
export function familyTree(data: any[], id: string): any[] { const res: any[] = []; const forFn = function (arr: any[], key: string) { for (let i = 0; i < arr.length; i += 1) { const item = arr[i] if (item.id === key) { res..原创 2021-08-29 15:47:51 · 380 阅读 · 0 评论 -
deepin或uos安装最新版nodejs出现Your distribution, identified as “n/a“错误解决
# Using Ubuntu curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash - sudo apt-get install -y nodejs 配置npm全局配置 #查看当前配置 npm config ls -l #修改cache和prefix两个目录的配置 npm config set prefix "/opt/.npm/global/" npm config set cache "/opt/.npm/cache/...原创 2021-06-20 10:04:47 · 2003 阅读 · 0 评论