natjs / nat

A powerful kit for adding native functionalities to your weex app.
http://natjs.com
282 stars 25 forks source link

Couldn't find preset "env" #25

Closed weenta closed 6 years ago

weenta commented 6 years ago

when npm run build ERROR in ./node_modules/_natjs@0.1.3@natjs/lib/index.js Module build failed: Error: Couldn't find preset "env" relative to directory "E:\\...\\node_modules\\_natjs@0.1.3@natjs"


environment win7 node 6.9.5 npm 5.0.4 weexpack 1.1.1

acathur commented 6 years ago

Please use npm i -D babel-preset-env to solve the problem temporarily, we will release a new version soon. @weenta

acathur commented 6 years ago

fixed. use npm i natjs to update your nat to the latest version (>=0.1.5)