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

Error: Couldn't find preset "env" relative to directory when npm install in eth-lightwallet repository #183

Open
arshbot opened this issue Jan 21, 2018 · 2 comments

Comments

@arshbot
Copy link

arshbot commented Jan 21, 2018

Hey all,

I'd like to contribute some functionality to this repository however I'm running into a ton of problems setting up the repository.

Can anyone shed any light on this issue? Everything seems set up correctly with babelrc

Error: Couldn't find preset "env" relative to directory "/Users/harshagoli/Projects/eth-lightwallet" while parsing file: /Users/harshagoli/Projects/eth-lightwallet/index.js
    at /Users/harshagoli/Projects/eth-lightwallet/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
    at Array.map (<anonymous>)
    at OptionManager.resolvePresets (/Users/harshagoli/Projects/eth-lightwallet/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
    at OptionManager.mergePresets (/Users/harshagoli/Projects/eth-lightwallet/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
    at OptionManager.mergeOptions (/Users/harshagoli/Projects/eth-lightwallet/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
    at OptionManager.init (/Users/harshagoli/Projects/eth-lightwallet/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/Users/harshagoli/Projects/eth-lightwallet/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/Users/harshagoli/Projects/eth-lightwallet/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at Pipeline.transform (/Users/harshagoli/Projects/eth-lightwallet/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
    at Babelify._flush (/Users/harshagoli/Projects/eth-lightwallet/node_modules/babelify/index.js:27:24)
@arshbot arshbot changed the title Contribution guide? Error: Couldn't find preset "env" relative to directory when npm install in eth-lightwallet repository Jan 21, 2018
@oqf
Copy link

oqf commented Feb 2, 2018

Try first: npm install babel-preset-env
and then: npm install

@K-Kit
Copy link

K-Kit commented Feb 6, 2018

same issue, ran npm update and fixed it

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

No branches or pull requests

3 participants