Skip to content

v1.9.6 breaks NPM install #405

Description

@dkozma

Environment

info
  React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (4) x64 Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz
      Memory: 1.32 GB / 24.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 10.14.1 - ~/.nvm/versions/node/v10.14.1/bin/node
      Yarn: 1.12.3 - /usr/local/bin/yarn
      npm: 6.9.0 - ~/.nvm/versions/node/v10.14.1/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
      Android SDK:
        API Levels: 28
        Build Tools: 28.0.3
    IDEs:
      Android Studio: 3.3 AI-182.5107.16.33.5314842
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react-native: 0.59.8 => 0.59.8
    npmGlobalPackages:
      react-native-cli: 2.0.1

Description

Cannot install library since it fails during NPM install. v1.9.5 works fine.

Reproducible Demo

v1.9.6 failure:

npm i @react-native-community/cli@v1.9.6
npm WARN react-native@0.59.8 requires a peer of react@16.8.3 but none is installed. You must install peer dependencies yourself.

npm ERR! path /Users/dkozma/Projects/AwesomeProject/node_modules/@react-native-community/cli/build/bin.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/dkozma/Projects/AwesomeProject/node_modules/@react-native-community/cli/build/bin.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/dkozma/.npm/_logs/2019-05-27T13_08_43_889Z-debug.log

compare to v1.9.5 output:

npm i @react-native-community/cli@v1.9.5
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN react-native@0.59.8 requires a peer of react@16.8.3 but none is installed. You must install peer dependencies yourself.

+ @react-native-community/cli@1.9.5
added 18 packages from 21 contributors and audited 59869 packages in 2.515s
found 22 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions