6

我在安装时遇到问题babel-node

npm i -g babel-node

> babel-node@6.5.2 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
4

1 回答 1

14

我解决了这个......它不直观。我会留下这个,以防其他人遇到这个问题。

npm install --save-dev babel-cli

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

于 2016-11-29T21:56:21.423 回答