admin管理员组文章数量:1429116
I'm getting an error when trying to run:
$babel-node ./server.js
The CLI has been moved into the package
babel-cli
.
$ npm install -g babel-cli
When I install it and run it again it asks again for it. Anyone came across this situation? Can't seem to move forward.
>
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v5.1.0
npm ERR! npm v3.5.0
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `babel-node ./server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'babel-node ./server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the relay-starter-kit package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! babel-node ./server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls relay-starter-kit
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/diogo/Projects/cf-ophite/npm-debug.log
I'm getting an error when trying to run:
$babel-node ./server.js
The CLI has been moved into the package
babel-cli
.
$ npm install -g babel-cli
When I install it and run it again it asks again for it. Anyone came across this situation? Can't seem to move forward.
>
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "start"
npm ERR! node v5.1.0
npm ERR! npm v3.5.0
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `babel-node ./server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'babel-node ./server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the relay-starter-kit package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! babel-node ./server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls relay-starter-kit
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/diogo/Projects/cf-ophite/npm-debug.log
Share
Improve this question
edited Dec 27, 2015 at 2:34
loganfsmyth
162k31 gold badges346 silver badges258 bronze badges
asked Nov 27, 2015 at 13:31
Diogo BarrosoDiogo Barroso
9153 gold badges9 silver badges22 bronze badges
0
1 Answer
Reset to default 6Babel Version 6 split some packages.
- Did you try to open a new terminal window after
npm install -g babel-cli
? - You can also install version 5 and work as before:
npm install -g babel@5
- If this happens after upgrading node, try
npm rebuild
in your project directory - Another solution is to delete the node_modules folder, and execute
npm install
again
本文标签: javascriptCan39t install babelcliStack Overflow
版权声明:本文标题:javascript - Can't install babel-cli - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745522394a2661683.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论