Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis builds failing: sh: 1: babel: not found #4

Closed
roydejong opened this issue Nov 28, 2017 · 2 comments
Closed

Travis builds failing: sh: 1: babel: not found #4

roydejong opened this issue Nov 28, 2017 · 2 comments
Assignees
Labels

Comments

@roydejong
Copy link
Owner

> shortcode-tree@1.4.3 prepare /home/travis/build/roydejong/shortcode-tree
> npm run build
> shortcode-tree@1.4.3 build /home/travis/build/roydejong/shortcode-tree
> babel src --presets babel-preset-es2015 --out-dir dist
sh: 1: babel: not found

e.g.

https://travis-ci.org/roydejong/shortcode-tree/builds/308717594#L448

@roydejong roydejong added the bug label Nov 28, 2017
@roydejong roydejong self-assigned this Nov 28, 2017
@roydejong
Copy link
Owner Author

This is related to the build script (prepare) being invoked on npm install for some reason.

Unfortunately, the build script does not actually work when publishing to npm, so something is completely wrong here.

@roydejong
Copy link
Owner Author

NPM can be a bit stupid sometimes.
Fixed now with: npm install --ignore-scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant