错误尝试安装NPM ATOB
问题描述:
我尝试安装NPM ATOB在我的项目,但突然它显示一个错误,现在为:错误尝试安装NPM ATOB
Linux 2.6.23.17-88.fc7
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "atob"
npm ERR! node v5.6.0
npm ERR! npm v3.8.8
npm ERR! code CERT_NOT_YET_VALID
npm ERR! certificate is not yet valid
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/www/project/npm-debug.log
但是当我搜索的大部分都回答为“修复您的系统时间“
答
尝试更正您的系统时间才能获得有效的认证。 否则试图更改版本的NodeJS
的sudo npm cache clean -f
须藤NPM安装-gñ 须藤ň稳定
答
的“BTOA-ATOB”模块不出口的编程接口,它仅提供命令行实用程序。 如果你需要转换为Base64你可以这样做使用液:
console.log(new Buffer('Hello World!').toString('base64'));
反向(假设你解码的内容是UTF8字符串):
console.log(new Buffer(b64Encoded, 'base64').toString());
我的系统时间是正确的 –