gulp-sourcemaps: Cannot find module './src/init'

前端 未结 3 604
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-07 02:01

I get an error while installing React-native, I have tried to search for an answer, but I can not find one.

When running \"react-native init meet\" I get this error:

相关标签:
3条回答
  • 2021-02-07 02:26

    This is caused by a recent change in gulp-sourcemaps. See bug here: https://github.com/floridoo/gulp-sourcemaps/issues/238

    0 讨论(0)
  • 2021-02-07 02:44

    It's related to an issue with gulp-sourcemaps recent deployment https://github.com/floridoo/gulp-sourcemaps/issues/238

    A project maintainer says at the end of the thread that he'll get to it today and

    For the time being lock your version down to 2.0.x or 1.7.x

    To fix, add specific version in your package.json until the issue is fixed:

    {
      "devDependencies": {
        "gulp-sourcemaps": "1.7.x"
      }
    }
    

    Use npm shrinkwrap to prevent similar issues in the future.

    0 讨论(0)
  • 2021-02-07 02:49

    This is now fixed. Run npm install https://github.com/floridoo/gulp-sourcemaps/issues/238

    0 讨论(0)
提交回复
热议问题