Mapbox-gl-js: can't npm install it on windows 7

Created on 6 Nov 2018  路  3Comments  路  Source: mapbox/mapbox-gl-js

mapbox-gl-js version:
master branch
browser:
none of browser issue

Steps to Trigger Behavior

  1. clone repository
  2. npm install

Snippets of debug.log

when npm install:

53292 warn [email protected] requires a peer of rollup@< 0.59.0 but none is installed. You must install peer dependencies yourself.
53293 warn [email protected] requires a peer of rollup@^0.56.2 but none is installed. You must install peer dependencies yourself.

so I tried changing version of rollup to "rollup": "^0.56.2", and again npm install:

1776 warn [email protected] requires a peer of rollup@>=0.66.0 <1 but none is installed. You must install peer dependencies yourself.

what would I do?

Most helpful comment

Finally I found a solution.

For others who gets the same error:

  1. npm install --global windows-build-tools
  2. open common.gypi placed on C:\Users\{username}\.node-gyp\{version}\include\node
  3. find '/LTCG:INCREMENTAL' and remove it.
  4. try yarn install again.

Referenced:

  1. https://github.com/nolanlawson/hello-electron-with-pouchdb/issues/5#issuecomment-242831651
  2. https://github.com/stackgl/headless-gl/issues/127#issuecomment-388097151

ps. I'm not sure about the side-effect of removing 'LTCG:INCREMENTAL' but install & build works.

All 3 comments

Error starts with:

53316 error code ELIFECYCLE
53317 error errno 1
53318 error [email protected] install: `prebuild-install || node-gyp rebuild`
53318 error Exit status 1
53319 error Failed at the [email protected] install script.

Let's track this in the headless-gl repo from which the error originates.

Finally I found a solution.

For others who gets the same error:

  1. npm install --global windows-build-tools
  2. open common.gypi placed on C:\Users\{username}\.node-gyp\{version}\include\node
  3. find '/LTCG:INCREMENTAL' and remove it.
  4. try yarn install again.

Referenced:

  1. https://github.com/nolanlawson/hello-electron-with-pouchdb/issues/5#issuecomment-242831651
  2. https://github.com/stackgl/headless-gl/issues/127#issuecomment-388097151

ps. I'm not sure about the side-effect of removing 'LTCG:INCREMENTAL' but install & build works.

Was this page helpful?
0 / 5 - 0 ratings