Qi

Cogito ergo sum

npm ERR! Refusing to delete

删除node_modules,重新执行npm install

SyntaxError: Unexpected token

版本问题,找到匹配的版本

node 与 npm 版本不匹配

https://nodejs.org/zh-cn/download/releases/

下载包超时问题

1
npm config set registry https://registry.npm.taobao.org

npm ERR! notsup Unsupported platform for fsevents@1.0.14: wanted {“os”:“darwin”,“arch”:“any”}

1
2
方法一 npm install-g npm@3.10.7 (更高版本会强制在window下安装fsevent,而fsevent只会在mac系统上可用)
方法二 删除pafsevent依赖

停用原因

使用了代理,频繁的切换IP地区

申诉方法

登陆账号,按照提示申诉

申诉模板

1
2
您好我的账户是xxxxx@gmail.com。我是中国区用户,必需使用vpn代理才能使用谷歌产品,可能由于vpn的不稳定和频繁切换造成账号异常被停用,这个账号对我很重要,希望您可以帮我解决一下,非常感谢。
Hello my account is xxxxx@gmail.com. I am a user in China, must use VPN proxy to use Google products, may be due to VPN instability and frequent switching caused by abnormal account deactivation, this account is very important to me, I hope you can help me solve it, thank you very much.

设置代理

1
2
3
git config --global http.proxy socks://127.0.0.1:10808
git config --global http.proxy http://127.0.0.1:10809
git config --global http.proxy https://127.0.0.1:10808

取消代理

1
git config --global --unset http.proxy

查看全局配置

1
2
3
git config --global --list
git config --global user.name "yourname"
git config --global user.email "email@email.com"

生成密钥

1
2
3
ssh-keygen -t rsa -C "email@email.com"

>> cat /c/Users/Alan/.ssh/id_rsa.pub

配置github授权

GitHub—>setting—>SSH and GPG keys—>SSH keys

测试是否生效

1
ssh -T git@github.com
0%