最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - babel-node installation "Only RSA and DSA public keys are allowed" - Stack Overflow

programmeradmin0浏览0评论

I'm having trouble installing babel-node

npm i -g babel-node

> [email protected] postinstall /Users/.../.../node_modules/babel-node
> node message.js; sleep 10; exit 1;

/Users/.../.../node_modules/ssh-key-to-pem/index.js:210
    throw new Error('Only RSA and DSA public keys are allowed');
    ^

Error: Only RSA and DSA public keys are allowed

I'm having trouble installing babel-node

npm i -g babel-node

> [email protected] postinstall /Users/.../.../node_modules/babel-node
> node message.js; sleep 10; exit 1;

/Users/.../.../node_modules/ssh-key-to-pem/index.js:210
    throw new Error('Only RSA and DSA public keys are allowed');
    ^

Error: Only RSA and DSA public keys are allowed
Share Improve this question asked Nov 29, 2016 at 21:51 TimmerzTimmerz 6,1995 gold badges37 silver badges50 bronze badges 1
  • FYI This package is almost certainly malicious and is typo-squatting babel-cli in order to exfiltrate people's SSH keys, you were saved by the fact that you use non RSA/DSA keys. I've reported it to NPM in the hopes that they remove it. – Nick Sweeting Commented Aug 18, 2019 at 23:37
Add a ment  | 

1 Answer 1

Reset to default 14

I solved this...it's not intuitive. I'll leave this up in case someone else runs into this issue.

npm install --save-dev babel-cli

https://babeljs.io/docs/usage/cli/

发布评论

评论列表(0)

  1. 暂无评论