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
1 Answer
Reset to default 14I 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/