mantrajs / mantra-cli

Command line interface for building Meteor apps with Mantra
MIT License
135 stars 34 forks source link

Cannot install mantra-cli 0.4.1. It gives a babel: not found error #97

Closed THPubs closed 7 years ago

THPubs commented 8 years ago

Hi, I tried to install mantra-cli in a new system and it gave me the following error :

λ npm install -g mantra-cli

> mantra-cli@0.4.0-rc.2 prepublish /home/pubudu/Projects/mantra-cli
> npm run-script compile

> mantra-cli@0.4.0-rc.2 compile /home/pubudu/Projects/mantra-cli
> babel lib/ -d dist/

sh: 1: babel: not found

npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "/home/pubudu/.nvm/versions/node/v6.6.0/bin/node" "/home/pubudu/.nvm/versions/node/v6.6.0/bin/npm" "run-script" "compile"
npm ERR! node v6.6.0
npm ERR! npm  v3.10.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! mantra-cli@0.4.0-rc.2 compile: `babel lib/ -d dist/`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the mantra-cli@0.4.0-rc.2 compile script 'babel lib/ -d dist/'.
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 mantra-cli package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     babel lib/ -d dist/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs mantra-cli
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls mantra-cli
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pubudu/Projects/mantra-cli/npm-debug.log

npm ERR! addLocal Could not install /home/pubudu/Projects/mantra-cli
npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "/home/pubudu/.nvm/versions/node/v6.6.0/bin/node" "/home/pubudu/.nvm/versions/node/v6.6.0/bin/npm" "install" "-g" "mantra-cli"
npm ERR! node v6.6.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! mantra-cli@0.4.0-rc.2 prepublish: `npm run-script compile`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the mantra-cli@0.4.0-rc.2 prepublish script 'npm run-script compile'.
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 mantra-cli package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run-script compile
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs mantra-cli
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls mantra-cli
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pubudu/Projects/npm-debug.log

So I installed mantra-cli 0.4.0 which worked fine. I run node 6.6.0 in Ubuntu 16.04 :smile:

THPubs commented 8 years ago

After installing 0.4.0 I was able to update to 0.4.1 without a issue.

sungwoncho commented 7 years ago

Closing this for now. Please re-open if it occurs again.

THPubs commented 7 years ago

Perfect! I might need to do a fresh install soon. I'll let you know if the error appear again.