permissions required group node
使用n对Mac上的Node版本进行管理及升降
## n 如果在我的电脑上已经安装了nodejs,但是觉得这个版本不好用,或者是不兼容公司的项目,那么可以使用n进行node的版本管理。n相对于nvm来说,安装起来还是非常方便的。 ## 安装 #### 1. 首先确定nodejs版本,确定已安装nodejs ``` node -v ``` #### ......
ts常用语法笔记(Omit,Pick,Partial,Required)
1.Omit【某个类型中去除某些项后的新的数据类型】 -需要两个参数:Omit<type, string>,第一个参数为要继承的type类型,第二个参数为想要去除的key的字符串,存在多个时用|分隔 源码: type Omit<T, K extends keyof any> = Pick<T, Ex ......
Electron 上下文隔离和 node 集成
# Context isolation and Node integration  ``` Scenario contex ......
linux 安装node
node官网下载地址 https://registry.npmmirror.com/binary.html?path=node/latest-v14.x/ 一、下载安装包到本地 wget https://registry.npmmirror.com/-/binary/node/latest-v14. ......
java正确开发系列:mybatis为何提示@MapKey is required
在mapper接口的方法定义为List<Map<String,Object>>类型时,会出现@MapKey is required的提示,意思是要在该方法的签名前加上@MapKey注解,指定Map的key 参考资料: https://blog.csdn.net/m0_59846266/article ......
P1763 friendly group
/* * @Description: To iterate is human, to recurse divine. * @Autor: Recursion * @Date: 2022-05-16 22:59:39 * @LastEditTime: 2022-05-16 23:27:17 */ #i ......
java.lang.IllegalStateException: failed to obtain node locks, tried [[/usr/local/elasticsearch/data/]] with lock id [0]
## 原因 如果你是更改了elasticsearch的配置,有可能是新旧缓存数据冲突 ## 解决办法 删除es根路径下data文件夹 PS:经测试不影响生成的索引数据,如果数据重要,请谨慎操作,暂未知道原理。 ......
node 代理访问服务器
1、背景 由于在开发的过程中,我们经常需要访问测试/正式环境,会出现线上正常,本地访问不同 2、方案 方法一: 我们可以通过node作为中间件,解决这一问题。示例如下: ``` var express = require('express'); const { createProxyMiddlewa ......
前端学习 node 快速入门 系列 —— 事件循环
## 事件循环 本篇将对以下问题进行讨论: - 浏览器有事件循环,node 也有事件循环,两者有什么异同? - node 核心特性(事件驱动和非阻塞 I/O )和事件循环有什么关系? - node 中的高并发和高性能和事件循环有关系吗? - node 不适合什么场景? - 有人说 Node 是单线程 ......
#yum安装mysql8.0.32修改二进制日志位置报错mysqld: File '/data/mysql/logbin/mysql-bin.index' not found (OS errno 13 - Permission denied)
#yum安装mysql8.0.32修改二进制日志位置报错mysqld: File '/data/mysql/logbin/mysql-bin.index' not found (OS errno 13 - Permission denied) [root@master-DNS mysql]# cat ......
动态引入(异步加载import和require)
组件懒加载的方式 1. require(AMD规范) { path: '/demo', name: 'Demo', component: resolve => require(['../components/Demo/index'], resolve)} 这种方法可以实现按需懒加载,并且一个组件会打 ......
uni 微信小程序修改checkbox-group样式
uni-checkbox .uni-checkbox-input { border-radius: 50% !important; color: #ffffff !important; } uni-checkbox .uni-checkbox-input.uni-checkbox-input-che ......
Node.js
## Linux ```bash # install Node.js brew install node # set npm mirror npm config set registry https://registry.npmmirror.com # install pnpm npm instal ......
node版本管理和更新
用的Node.js的多版本管理器n来升级的 1、sudo npm cache clean -f //清除nodejs的cache 2、sudo npm install -g n //使用npm安装n模块 3、npm view node versions // node所有版本 4、sudo n la ......
自己写一个 NODE/ATTR 的结构
```python ## python 3.8 以上 from typing import Dict, List, TypeVar, Tuple, Generic, get_args import json T = TypeVar("T") # 数据的默认值 def get_dft(tp): if ......
Field userClient in com.demo.order.service.OrderService required a bean of type'com.demo.feign.clients.UserClient' that could not be found.
在SpringCloud项目中使用Feign进行远程调用遇到的错误。原因是因为UserClient在com.demo.feign.clients包下面,而order-service的@EnableFeignClientd注解却在com.demo.order包下面,这两个不在同一个包下,无法扫描到Us ......
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fd dial unix /var/run/docker.sock: connect: permission denied
001、普通用户操作docker遇到如下问题 permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun% ......
一种基于token 和 Permission 的权限管理中间件示例
1. 先上封装后的使用效果 [Permission(Key = "/User/AddUser")] [HttpPost] public Result AddUser([FromBody] SaUser user) { //Do sth. throw new NotImplementedExcepti ......
Unable to retrieve version information from Elasticsearch nodes
问题描述 es启动正常;但当kibana时,报了如下错误 Unable to retrieve version information from Elasticsearch nodes. connect ECONNREFUSED XXX.X.X.X:9200 解决方法 网上大多是将配置文件中的相关地 ......
ShardingSphere + Pagehelper 组合sql查询中包含 DISTINCT GROUP BY 等关键字和聚合函数时,导致报错
Pagehelper 中配置说明 params:为了支持startPage(Object params)方法,增加了该参数来配置参数映射,用于从对象中根据属性名取值, 可以配置 pageNum,pageSize,count,pageSizeZero,reasonable,不配置映射的用默认值, 默认 ......
python:ERROR: Could not build wheels for wordcloud, which is required to install pyproject.toml-based projects
pycharm里无法下载,在下面下载出现问题 需要下载error里的文件 https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud 这个网站找。输入Python,看自己电脑是怎样的 下载文件后,放到对应位置,下载成功 ......
08 The required antiforgery cookie .AspNetCore.Antiforgery.SHBLLax8hUM is not present问题排查
08 Abp The required antiforgery cookie .AspNetCore.Antiforgery.SHBLLax8hUM is not present问题排查 问题描述 Vue前端提交表单修改数据时,后台API服务报 The required antiforgery co ......
Missing binding E:\server\dovip\buyer-pc-web\node_modules\node-sass\vendor\win32-x64-83\binding.node Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 14.x
error in ./src/components/Search.vue?vue&type=style&index=0&id=7cb41050&scoped=true&lang=scss& Syntax Error: Error: Missing binding E:\server\dovip\bu ......
关于Kubernetes-k8s集群在任意nodes节点上执行kubectl和kubadm命令的方法
在Kubernetes-k8s集群中,一般只有在master 才能执行 kubectl和kubadm 相关的命令 如果到worker nodes 节点上执行,则会有如下报错: [root@k8s-node1 qq-5201351]# kubectl get nodes,po -A The conne ......
RabbitMQ: Error: unable to perform an operation on node 'rabbit@prod-ad-api-02'. Please see diagnostics information and suggestions below.
Error: unable to perform an operation on node 'rabbit@prod-ad-api-02'. Please see diagnostics information and suggestions below. rabbit@prod-ad-api-02 ......
关于k8s-master节点的token过期后的处理方法-让新node节点加入的方法
在前面的文章《关于忘记kubernetes-master节点的token以及让新node节点加入k8s集群的命令的处理方法》中只是讲述的token忘记的处理方法 但是如果token已经过期了(默认情况下,token的有效期为24小时)、该如何处理呢、 首先我们记几个前置的命令,第一个是我们可以通过 ......
NVM:node版本管理工具
NVM下载: nvm ***-setup.zip 安装版(免配置、推荐使用)。 nvm ***-noinstall.zip 免安装版(使用时需要配置) NVM: 下载地址一(国内地址):https://nvm.uihtm.com/download.html 下载地址二(官网):https://git ......
MySQL之only_full_group_by
https://www.cnblogs.com/JaxYoun/p/13177993.html MySQL之only_full_group_by 开发环境连接的mysql5.6,而测试环境是mysql5.7。开发中有小伙伴写了有关group by的sql语句。在开发环境中运行是正常的,而到了测试环境 ......
mysql 5.7 Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column ...报错
https://www.shuzhiduo.com/A/gGdX3BNp54/ https://blog.csdn.net/wufaqidong1/article/details/126263023 使用mysql在执行一条插入语句时 insert into channel(channel_id, ......