why babel stores .babel.json in USERPROFILE path

前端 未结 4 1666
小蘑菇
小蘑菇 2021-01-04 11:33

I\'m running a nodejs app on azure web apps and i\'m trying to integrate babel using npm in it. The problem is that babel is trying to acccess a file at

4条回答
  •  忘掉有多难
    2021-01-04 12:12

    You change the store location of .babel.json by BABEL_CACHE_PATH

    I think its better than disable caching

    BABEL_CACHE_PATH=any_writable_and_exist_dir/babel.cache.json

提交回复
热议问题