unexpected npm token 39

2023-05-30 前端通过node获取七牛云的token(token最好还是在后端返回,前端获取token会暴露密钥)

const fs = require('fs'); const qiniu = require('qiniu'); var accessKey = '你的accessKey'; var secretKey = '你的secretKey'; var mac = new qiniu.auth.diges ......
前端 token 密钥 还是 最好

CF506D - Mr. Kitayuta's Colorful Graph

本质不同的算法主要有两种:对子图大小根号分治和类启发式均摊。此外还有很多实现上的差别。 #### 对子图大小根号分治 在线做法: 我们发现,把每个颜色的边和它们的顶点取出为一个子图,所有子图大小的和是 $O(n)$ 级别的。那么我们就可以根号分治。 首先,要预处理每个颜色子图下的连通块。可以用并查集 ......
Kitayuta Colorful Graph 506D 506

一文详解 Sa-Token 中的 SaSession 对象

Sa-Token 是一个轻量级 java 权限认证框架,主要解决登录认证、权限认证、单点登录、OAuth2、微服务网关鉴权 等一系列权限相关问题。 > Gitee 开源地址:[https://gitee.com/dromara/sa-token](https://gitee.com/dromara/ ......
SaSession Sa-Token 对象 Token Sa

ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found

![image](https://img2023.cnblogs.com/blog/80824/202305/80824-20230529180419775-1944099268.png) ```bash [root@localhost PaddleOCR]# strings /lib64/libs ......
ImportError libstdc version CXXABI found

npm install ERR_INVALID_URL错误

我在terminal中设置了proxy后,开启proxyon后,执行npm install包错误: 把proxyoff后,错误又没有了,不知道是啥问题。下面的文章可能有作用: https://weekendprojects.dev/posts/how-to-fix-npm-err_invalid_u ......
ERR_INVALID_URL 错误 install INVALID npm

Centos7 安装 npm 学习

#系统环境 Centos7 #!/bin/bash Centos7一键安装 npm 地址列表地址列表���地址列表 官网 node.js 站点链接: https://nodejs.org 淘宝 node.js 镜像站点链接: https://npm.taobao.org/mirrors/node 安 ......
Centos7 Centos npm

sa-token的前后端分离中的简单使用

### sa-token的前后端分离中的简单使用 sa-token: 一个轻量级 java 权限认证框架,让鉴权变得简单、优雅!极大程度上减少鉴权相关代码的编写,实现注入即用的效果。 官方文档 :https://sa-token.cc/ 详细配置及其学习请在官方文档学习。 1. ##### 引入相关 ......
sa-token token sa

springboot集成themeleaf报Namespace 'th' is not bound问题的解决

# 问题描述 在我们想要在html前端页面使用**th:**符号时,发现他一直报错 # 问题解决 在html标签的最上方,也就是这里: ![](https://img2023.cnblogs.com/blog/2808014/202305/2808014-20230529214656925-1375 ......
springboot Namespace themeleaf 问题 bound

【Oracle】Check the tbs' usage

set feedback off set pagesize 70; set linesize 2000 set head on COLUMN Tablespace format a25 heading 'Tablespace Name' COLUMN autoextensible format a1 ......
Oracle Check usage the tbs

can't not find Node.js binary ''path",make sure Node.js is installed and in your PATH,or set

vscode中node执行debug报错 报错信息如下 思路1:检查node是否安装成功 win + R 输入cmd 能够正常显示版本号,则证明没有问题,接着换个思路 思路2:根据提示打开图示的'launch.json'文件,在页面补充 runtimeExecutable 具体补充什么内容呢? 在o ......
Node installed 39 binary PATH

npm

# [npm 源地址设置及恢复](https://www.cnblogs.com/uzi666/p/15350757.html) ### 设置国内淘宝镜像 1. 通过cnpm使用淘宝镜像: ```javascript npm install -g cnpm --registry=https://re ......
npm

axios 或 @nestjs/axios 错误地应用 npm config proxy

# npm proxy ``` $ npm config get proxy http://127.0.0.1:25378/ ``` 如果你的npm设置了如上代理,那么当请求本地服务时,应该会出现代理错误(通常是502响应): ``` import { HttpService } from '@ne ......
axios 错误 nestjs config proxy

52.同源策略(Same-Origin Policy)限制了跨域请求No 'Access-Control-Allow-Origin' header is present on the requested resource.

又遇到如下报错了,该如何处理, Access to XMLHttpRequest at 'http://localhost:3000/users' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Acc ......

java.lang.IllegalArgumentException: Invalid character found in method name [token

这个问题是本地用了https,只要将https改为http就可以解决。 参考:https://blog.csdn.net/weixin_44299027/article/details/109474606 https://blog.csdn.net/jcmj123456/article/detail ......

2023-05-29 Cannot read property 'access_token' of undefined

调用微信小程序登录接口,返回Cannot read property 'access_token' of undefined,即access_token未定义,登陆失败了,没有返回这个字段。 解决方案:把开发人员添加到小程序的开发者名单里去就可以了。 ......

SpringBoot单元测试出错:No ConfigurationProperties annotation found on 'org.springframework.cloud.client.loadbalancer.LoadBalancerProperties'

### 问题详情: ``` java.lang.IllegalStateException: No ConfigurationProperties annotation found on 'org.springframework.cloud.client.loadbalancer.LoadBalan ......

java 操作 mysql -报错 LockException: Failure obtaining db row lock: Table 'xxx' doesn't exist

1.背景 Java 使用mybatis plus 操作mysql 报错 原因是 mysql 开启了 表明区分大小写 MySQL在Windows下都不区分大小写,但是在Linux下默认是区分大小写的。 在mysql 执行指令 show variables like '%lower_case%'; 需要 ......
LockException obtaining 39 Failure Table

报错ImportError: cannot import name 'Iterable' from 'collections' in Python

参考https://stackoverflow.com/questions/72032032/importerror-cannot-import-name-iterable-from-collections-in-python 答案为 3.10版本的python把Iterable从collectio ......
39 ImportError collections Iterable cannot

jwt生成token

依赖 <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt</artifactId> </dependency> package com.xxx.common.helper; import io.jsonwebtoken.* ......
token jwt

python -- 解决连接sqlserver出现的“ pymssql._pymssql.OperationalError: (20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Server is unavailable or does not exist”问题

因为工作关系,近期需要用python连接sqlserver处理一些数据问题。 由于笔记本上的软件是新安装的,所以有些配置避免不了重新设置,期间遇到一些小问题,记录一下。 下面正式开始 写一段代码,测试sqlserver数据库连接 import pymssql # 写法1# conn = pymssq ......

China's digital economy achievements impress foreign youth

GUIYANG, May 27 (Xinhua) -- The ongoing China International Big Data Industry Expo 2023, held in southwest China's Guizhou province, has attracted att ......
achievements digital economy impress foreign

ModuleNotFoundError: No module named 'requests' 解决方案

ModuleNotFoundError: No module named 'requests' 一般就是没导入库,可以在脚本当前目录下,运行一下代码: pip install request # 同理,如果别的库缺漏,就把request替换掉 我是在vscode里面跑的python,所以就用的pow ......

[犯病记] DPDK报错Symbol `rte_eth_devices' has different size in shared object, consider re-linking

# [犯病记] DPDK报错Symbol `rte_eth_devices' has different size in shared object, consider re-linking > 背景:有一天,我犯了个病,试图在一个机器上安装DOCA,然后安装程序就下了一堆库,把机器上的环境搞得一团 ......

npm中存在幽灵依赖吗

是的,npm中确实存在幽灵依赖(Ghost Dependencies),也称为虚拟依赖(Virtual Dependencies)。 幽灵依赖指的是在项目中虽然没有显式引用该依赖,但是存在其他依赖与该依赖版本有冲突,导致该依赖被安装到项目中,占用项目的空间和资源。 举个例子,假设项目引用了两个库 A ......
幽灵 npm

nvm安装多版本node,vscode不识别npm函数解决方案

npm: 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正 确,然后再试一次 的解决方案 ......
函数 解决方案 版本 方案 vscode

Plugin 'maven-clean-plugin:3.1.0' not found

解决方案 增加如下代码: <groupId>org.apache.maven.plugins</groupId> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifact ......
maven-clean-plugin Plugin plugin maven clean

python flask 启动报错 'utf-8' codec can't decode byte 0xb2 in position 4: invalid start byte

原因:在python下lib文件夹里的socket.py文件中的name=gethostname()代码执行获取本机电脑名称时,遇到中文导致乱码报错。 解决方法: 1.将电脑“设备名称”中中文改为英文; 2.修改socket.py代码,如下(参考 https://blog.csdn.net/weix ......
byte 39 position invalid python

day 39 素数

1.给出start与end; 2.有数i,遍历start~end中的素数; 3.输出; #include <iostream>#include<cmath> using namespace std; int main(void){ int m,n; int flag; printf("请输入star ......
素数 day 39

Python - matplotlib 不显示中文 && findfont: Font family ['simsun'] not found

# 一.发现问题 python matplotlib.plt 使用 plt.title 写标题时,标题显示为方框,无法正常显示中文,遂开始修复之旅。 ![](https://img2023.cnblogs.com/blog/2864832/202305/2864832-202305261554041 ......
matplotlib amp findfont Python family

x509: cannot validate certificate for xxx because it doesn't contain any IP SANs

项目中有时候需要访问https网站,但如果该网站使用的是自建证书,那client端验证server端证书时,有时候会报错: > x509: cannot validate certificate for xxx because it doesn't contain any IP SANs 碰到这种情 ......
certificate validate because contain cannot