我在安装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
我解决了这个问题...这不是直观的。如果有人遇到这个问题,我将留下来。
npm install --save-dev babel-cli
https://babeljs.io/docs/usage/cli/