Consensys/eth-lightwallet

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

arshbot opened this issue · 2 comments

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)
oqf commented

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

K-Kit commented

same issue, ran npm update and fixed it