Using Debian, as root curl -sL https://deb.nodesource.com/setup_15.x | bash - apt-get install -y nodejs
国内服务器npm默认源速度太慢
解决办法:使用淘宝镜像源
1
npm config set registry https://registry.npm.taobao.org
阿里镜像源部分npm包缺失
问题描述:
1 2 3
npm ERR! 404 Not Found - GET https://registry.npm.taobao.org/@types/color-name/-/color-name-1.1.1.tgz - [not_found] document not found npm ERR! 404 npm ERR! 404 '@types/color-name@https://registry.npm.taobao.org/@types/color-name/-/color-name-1.1.1.tgz' is not in the npm registry.
解决办法:切换回默认镜像源
1
npm config set registry https://registry.npmjs.org/
Hexo版本过高
问题描述:
1 2 3
ERROR Package hexo's version (5.2.0) does not satisfy the required version (^4.2.0). ERROR Package hexo-log's version (2.0.0) does not satisfy the required version (^1.0.0). ERROR Package hexo-util's version (2.4.0) does not satisfy the required version (^1.8.0).