Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install errors #1590

Open
Craytor opened this issue Apr 21, 2019 · 3 comments
Open

npm install errors #1590

Craytor opened this issue Apr 21, 2019 · 3 comments

Comments

@Craytor
Copy link

Craytor commented Apr 21, 2019

When I try to run npm install @mapbox/react-native-mapbox-gl --save, the following happens.

> @mapbox/[email protected] preinstall /Users/tyleryouschak/Code/livestormchasing-mobile/node_modules/@mapbox/react-native-mapbox-gl
> npm run fetch:ios:sdk


> @mapbox/[email protected] fetch:ios:sdk /Users/tyleryouschak/Code/livestormchasing-mobile/node_modules/@mapbox/react-native-mapbox-gl
> node ./scripts/download-mapbox-gl-native-ios-if-on-mac.js 3.7.8

{ Error: Command failed: "/Users/tyleryouschak/Code/livestormchasing-mobile/node_modules/@mapbox/react-native-mapbox-gl/scripts/download-mapbox-gl-native-ios.sh" 3.7.8
Print: Entry, ":MGLSemanticVersionString", Does Not Exist
internal/modules/cjs/loader.js:611
    throw err;
    ^

Error: Cannot find module '../'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:609:15)
    at Function.Module._load (internal/modules/cjs/loader.js:535:25)
    at Module.require (internal/modules/cjs/loader.js:663:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (/Users/tyleryouschak/Code/livestormchasing-mobile/node_modules/.bin/which:2:13)
    at Module._compile (internal/modules/cjs/loader.js:734:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:745:10)
    at Module.load (internal/modules/cjs/loader.js:626:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:566:12)
    at Function.Module._load (internal/modules/cjs/loader.js:558:3)

    at ChildProcess.exithandler (child_process.js:297:12)
    at ChildProcess.emit (events.js:197:13)
    at maybeClose (internal/child_process.js:978:16)
    at Socket.stream.socket.on (internal/child_process.js:395:11)
    at Socket.emit (events.js:197:13)
    at Pipe._handle.close (net.js:611:12)
  killed: false,
  code: 1,
  signal: null,
  cmd:
   '"/Users/tyleryouschak/Code/livestormchasing-mobile/node_modules/@mapbox/react-native-mapbox-gl/scripts/download-mapbox-gl-native-ios.sh" 3.7.8' }
npm WARN [email protected] requires a peer of react-art@>= 16.3.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@>= 16.3.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-native-web@>= 0.7 but none is installed. You must install peer dependencies yourself.

+ @mapbox/[email protected]
added 3 packages from 7 contributors and audited 890836 packages in 9.361s
found 11 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

I'm unsure what to do.

@eberperetto
Copy link

Got the same error here as well :(

@bilal-korir
Copy link

bilal-korir commented May 6, 2019

I ended up here because I've been having the same issue

At first, I was downloading the @mapbox/react-native-mapbox-gl from the official NPM package of Mapbox. Last time the package has been updated was 8 months ago. Unfortunately, it seems like Mapbox stopped supporting it!

To solve my issue I switched to downloading the package directly from the up-to-date "An unofficial" Github repo. Updated my package.json to this:

"@mapbox/react-native-mapbox-gl": "https://github.com/nitaliano/react-native-mapbox-gl"

There are other posts discussing using CocoaPods #1533 and S3 slow download issue #916

@martinezguillaume
Copy link

@bilal-korir even if I switch to this repo, I have a extremely slow downloading... Don't know why

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants