unexpected npm token 39

npm提示登录成功但是无法发布版本并报401 Unauthorized

今天遇见了这个问题,刚开始以为密码被重置,但是在别人的电脑上可以使用自己的用户名密码发布,说明是电脑配置的问题 首先打开npm默认配置文件.npmrc文件,可以看到发布地址后有一串:_authToken=** 1、若只存在一个发布地址,删除发布地址中的_authToken=**,并重新登录 2、若存 ......
Unauthorized 版本 npm 401

Module '"element-plus"' has no exported member 'ElMessage'

tsconfig.json,tsconfig.app.json,tsconfig.node.json都要加 "compilerOptions.moduleResolution":"node", 然后重启vscode ......
39 quot element-plus ElMessage exported

c++打卡练习(39)

验证2000以内哥德巴赫猜想 2000以内,大于4的所有偶数都可以由两个素数a,b相加得到,求出a最小的那个的结果 流程图: 伪代码: 源代码: #include<iostream>using namespace std;int judge(int a){ int j,k=0; for(j=2;j< ......

dataFrame['col_name'].str.contains(str_name,case=False)用法

#### dataFrame['col_name'].str.contains(str_name,case=False)用法 主要功能:在`dataframe`某一列中找到包含特定字符串的`dataframe` 例如: ![](https://img2023.cnblogs.com/blog/258 ......
name dataFrame str col_name contains

express开发api指南--登录token验证

先安装依赖 ``` cnpm install --save express-jwt jsonwebtoken ``` 增加登录接口,在routes下新建login.js,内容如下: ``` var express = require("express"); var router = express. ......
express 指南 token api

npm简介

npm(Node Package Manager)是Node.js的包管理器,它是随同Node.js一起安装的。npm允许开发者在自己的项目中方便地安装、更新、卸载和管理各种开源的Node.js模块。 使用npm,你可以通过命令行界面(CLI)执行以下常用操作: 1. 安装包:通过`npm inst ......
简介 npm

npm和cnpm相互切换

当需要使用淘宝镜像时也就是所谓的npm切换至cnpm步骤如下: 在项目中或者window小黑窗 npm config set registry https://registry.npm.taobao.org 建议测试下是否切换成功,可以运用下方命令测试 npm config get registry ......
cnpm npm

JWT —— token令牌

JWT 一、介绍 全称:JSON Web Token ,用于对应用程序上的用户进行身份标记 本质上就是一个经过加密处理与校验处理的字符串,它由三部分组成: 头信息(Header):记录令牌类型和签名算法,例如:{ "alg" : "HS256", "typ" : "JWT" } 有效载荷(Paylo ......
令牌 token JWT

如何编写一个健壮的 npm 包

比如老王我,用npm init新建一个包,改把改把,然后来个npm publish,so easy ✌️!Too young too naive, baby ?!请容我讲述一些发布过程中踩过的坑。 ......
npm

python:Error: EPERM: operation not permitted, mkdir 'F:\Program Files\nodejs\node_global\node_modules'报错

可以发现文件没有权限 npm ERR! Error: EPERM: operation not permitted, mkdir 'F:\Program Files\nodejs\node_global\node_modules' 将nodejs的文件权限改为完全控制 之后操作即可 ......

A Knight's Journey

[ 提交 ] [状态] 题目描述 The knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey around the w ......
Journey Knight 39

区块链的Token机制如何理解?

# 区块链的Token机制如何理解? ......
区块 机制 Token

codeforces#1829H.Don't Blame Me(dp)

题解 ``` #include #define io ios::sync_with_stdio(false); #define off cin.tie(0), cout.tie(0); #define all(x) x.begin(),x.end() #define inf 0x3f3f3f3f3f ......
codeforces Blame 1829 Don 39

ModuleNotFoundError: No module named 'Crypto', Python 3.9, PyCharm

https://stackoverflow.com/questions/65389275/modulenotfounderror-no-module-named-crypto-python-3-9-pycharm ......

selenium 启动ie浏览器报错:Unexpected error launching Internet Explorer. Protected Mode settings are not ...

解决selenium 启动ie浏览器报错:Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones 错误原因是IE浏览器中的安全选项设置不一致。打开IE浏览 ......

如何获取Github Token

登录我们的github账号,点击头像后选择Settings ![](https://img2023.cnblogs.com/blog/2280730/202305/2280730-20230524121031310-1567257315.jpg) 进入界面之后下拉到左侧菜单的最后,选择Develop ......
Github Token

git 报错:fatal: unable to access 'https://XXXX.../': Failed to connect to github.com port 443 after 21023 ms: Timed out

问题: 下载github开源项目时报错 原因: 以前用过代理,这里取消代理就可以了 git config --global --unset http.proxy 结果: ......
to connect access Failed unable

傻傻的npm run serve吗?还有其他方法换项目中的代理

``` 1.直接修改 封装的axios host 使用浏览器跨域 2. hostconfig.js module.exports = { "target": "http://xxxxxx" }; vue.config.js /* target: 'that must have a empty pla ......
方法 项目 serve npm run

Linux-find: missing argument to `-exec'

报错提示:find: missing argument to `-exec' 今天写一个清理脚本,用到了find命令。本来是这么写的: find . -type f -mtime +7 -name "*.log" -exec rm -rf {} \ 结果报错,find: missing argume ......
Linux-find argument missing Linux find

python:Error: EPERM: operation not permitted, mkdir 'F:\Program Files\nodejs\node_global\node_modules'报错

可以发现文件没有权限 npm ERR! Error: EPERM: operation not permitted, mkdir 'F:\Program Files\nodejs\node_global\node_modules' 将nodejs的文件权限改为完全控制 之后操作即可 ......

MYSQL设置密码时显示Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication d

​ 用这个命令进入mysql sudo mysql 在sql命令行输入以下命令回车,你就可以把密码改成mynewpassword ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mynewpassword ......

MYSQL设置密码时显示Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication d

​ 用这个命令进入mysql sudo mysql 在sql命令行输入以下命令回车,你就可以把密码改成mynewpassword ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mynewpassword ......

java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

``` org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.sql.SQLException: Access denied for user 'root'@'local ......
39 SQLException localhost password Access

Code39详细介绍

Code39码是条形码的一种,也被称为3 of 9 code、USD-3或者LOGMARS,因为其编制简单、能够对任意长度的数据进行编码、支持设备广泛等特性,所以成为使用最为广泛的条形码格式之一。 Code 39码仅有两种单元宽度——分别为宽单元和窄单元。宽单元的宽度为窄单元的1到3倍,一般多选用2 ......
Code 39

macOS下由yarn与npm差异引发的Electron镜像地址读取问题

记录macOS下由yarn与npm差异引发的Electron镜像地址读取问题 写在前面:该问题仅仅出现在Linux和macOS上,Windows上不存在该问题! # 初始背景 最近笔者重新拾起了Electron,把最新版Electron的官方文档阅读了一遍。众所周知,Electron作为依赖在安装的 ......
Electron 差异 镜像 地址 问题

.net6中数据库查询报错:'OFFSET' 附近有语法错误。 在 FETCH 语句中选项 NEXT 的用法无效。

错误语句: 在数据库查询中使用skip() 问题原因: 数据库版本为SQL Server 2008,不支持'Fetch'和'Next'语句 SQL Server 2012及后续版本才支持相关语句 解决方法: 1. 引用包: System.Data.SqlClient和EntityFrameworkC ......
语句 语法 错误 数据库 数据

Git拉取代码报错:Can't Update No tracked branch configured for branch dev or the branch doesn't exist.To make your branch track a remote branch call

错误: 解决方法: 第一步: git pull origin(远程仓库名称) develop(远程分支名称) --allow-unrelated-histories 第二步: git branch --set-upstream-to origin(远程仓库名称)/develop(远程分支名称) de ......
branch configured tracked 代码 Update

open("0.txt",'w') 打开后文件指针在开头,即使不执行写操作,也会清空原内容

f = open('a.txt', 'w+') data = f.read() data = f.readline() w、w+、wb、wb+ 模式都会默认清空文件 file = open("0.txt",'w') file.close() 打开后文件指针在开头,即使不执行写操作,也会清空原内容 ......
quot 指针 开头 文件 内容

SQLServer 报错:用户、组或角色'XXX' 在当前数据库中已存在. 错误:15023解决方法

分析: 将数据库恢复到其他服务器时,数据库中包含一组用户和权限,但可能没有相应的登录或者登录所关联的用户可能不是相同的用户。 这种情况被称为存在“孤立用户”。此时是不能通过新建登录或者是对同名登录授予对应数据库的“用户”权限来解决登录问题, 因为SQLServer会报出“错误15023:当前数据库中 ......
SQLServer 角色 错误 数据库 方法

if __ name __ == ’ __ main __'的意思

案例:编写一个测试模块test.py #!/usr/bin/env python3# -*- coding: utf-8 -*- ' a test module ' def addFunc(a,b): return a+b print('test :1+1的计算结果:',addFunc(1,1)) ......
意思 name main if 39