Skip to content

Instantly share code, notes, and snippets.

@singingwolfboy
Created August 23, 2018 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save singingwolfboy/87bf49c486bd57c6bb342ba91d25cfa8 to your computer and use it in GitHub Desktop.
Save singingwolfboy/87bf49c486bd57c6bb342ba91d25cfa8 to your computer and use it in GitHub Desktop.
$ git clone git@github.com:alex3165/react-mapbox-gl.git
Cloning into 'react-mapbox-gl'...
remote: Counting objects: 4617, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 4617 (delta 1), reused 4 (delta 1), pack-reused 4607
Receiving objects: 100% (4617/4617), 12.55 MiB | 4.60 MiB/s, done.
Resolving deltas: 100% (3062/3062), done.
$ cd react-mapbox-gl/example
$ npm install
> fsevents@1.1.3 install /Users/db/clones/react-mapbox-gl/example/node_modules/fsevents
> node install
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@10.8.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@10.8.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
SOLINK_MODULE(target) Release/.node
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
../../nan/nan.h:839:18: In file included from warning: ../fsevents.cc:6:
'MakeCallback' is../../nan/nan.h :deprecated:839 :Use18
: MakeCallback(..., async_context) warning[-Wdeprecated-declarations]:
'MakeCallback' is deprecated: Use
MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/db/.node-gyp/10.8.0/include/node/node.h:171:1: return node::MakeCallback(
^note
: 'MakeCallback' has
been/Users/db/.node-gyp/10.8.0/include/node/node.h :explicitly171 :marked1 :deprecated herenote
: 'MakeCallback' has
been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/db/.node-gyp/10.8.0/include/node/node.h:88:20NODE_DEPRECATED("Use MakeCallback(..., async_context)",:
^
note: expanded from macro/Users/db/.node-gyp/10.8.0/include/node/node.h
: 88'NODE_DEPRECATED':20
: note: expanded from macro
'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:854:18: In file included from ../fsevents.cc:warning6: :
../../nan/nan.h'MakeCallback': 854is: 18deprecated:: Use
warningMakeCallback(...,: async_context) 'MakeCallback'[-Wdeprecated-declarations] is
deprecated: Use
MakeCallback(..., async_context) [-Wdeprecated-declarations] return node::MakeCallback(
^
/Users/db/.node-gyp/10.8.0/include/node/node.h: return node::MakeCallback(164
:1 ^:
note: /Users/db/.node-gyp/10.8.0/include/node/node.h'MakeCallback': 164has:
1 :been explicitly notemarked: deprecated'MakeCallback' herehas
been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
/Users/db/.node-gyp/10.8.0/include/node/node.h:^88
:20: /Users/db/.node-gyp/10.8.0/include/node/node.hnote:: 88:expanded20 :from macro
note : 'NODE_DEPRECATED'expanded
from macro
'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:869:18: warningIn file included from : ../fsevents.cc:6'MakeCallback':
is../../nan/nan.h :deprecated:869 :Use18
: MakeCallback(..., async_context)warning : [-Wdeprecated-declarations]
'MakeCallback' is deprecated: Use
MakeCallback(..., return node::MakeCallback(
async_context) ^[-Wdeprecated-declarations]
/Users/db/.node-gyp/10.8.0/include/node/node.h:157:1: return node::MakeCallback(
note ^:
'MakeCallback' has
/Users/db/.node-gyp/10.8.0/include/node/node.hbeen: 157explicitly: 1marked: deprecated herenote:
'MakeCallback' has
been explicitly marked deprecated here
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
^
/Users/db/.node-gyp/10.8.0/include/node/node.h:88:20: NODE_DEPRECATED("Use MakeCallback(..., async_context)",
note^:
expanded from /Users/db/.node-gyp/10.8.0/include/node/node.hmacro:
88 :'NODE_DEPRECATED'20:
note: expanded from macro
'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1478:31: warning: 'MakeCallback' is deprecated: Use
In file included from MakeCallback(...,../fsevents.cc :async_context)6 :
[-Wdeprecated-declarations]../../nan/nan.h
:1478:31: warning: 'MakeCallback' is return scope.Escape(node::MakeCallback(
deprecated: ^Use
MakeCallback(..., async_context) /Users/db/.node-gyp/10.8.0/include/node/node.h[-Wdeprecated-declarations]:171
:1: note: 'MakeCallback' has
been return scope.Escape(node::MakeCallback(
explicitly ^marked
deprecated here
/Users/db/.node-gyp/10.8.0/include/node/node.h:171:1: note: 'MakeCallback' has
NODE_DEPRECATED("Use MakeCallback(..., async_context)",been
explicitly^
marked deprecated here/Users/db/.node-gyp/10.8.0/include/node/node.h
:88:20: note: expanded from macro
NODE_DEPRECATED("Use MakeCallback(..., async_context)",
'NODE_DEPRECATED'^
/Users/db/.node-gyp/10.8.0/include/node/node.h:88:20: note __attribute__((deprecated(message))) declarator:
expanded ^
from macro
'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
4 warnings generated.
4 warnings generated.
rm: ./Release/.deps/Release/obj.target/fse/fsevents.o.d.raw: No such file or directory
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp SOLINK_MODULE(target) Release/fse.node
ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:238:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/usr/local/Cellar/node/10.8.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/db/clones/react-mapbox-gl/example/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" "--module_name=fse" "--module_path=/Users/db/clones/react-mapbox-gl/example/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64"
gyp ERR! cwd /Users/db/clones/react-mapbox-gl/example/node_modules/fsevents
gyp ERR! node -v v10.8.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/Cellar/node/10.8.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/db/clones/react-mapbox-gl/example/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/db/clones/react-mapbox-gl/example/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/db/clones/react-mapbox-gl/example/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:249:5)
node-pre-gyp ERR! System Darwin 17.7.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/10.8.0/bin/node" "/Users/db/clones/react-mapbox-gl/example/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/db/clones/react-mapbox-gl/example/node_modules/fsevents
node-pre-gyp ERR! node -v v10.8.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/Cellar/node/10.8.0/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/db/clones/react-mapbox-gl/example/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/Users/db/clones/react-mapbox-gl/example/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64' (1)
COPY /Users/db/clones/react-mapbox-gl/example/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node
TOUCH Release/obj.target/action_after_build.stamp
> uglifyjs-webpack-plugin@0.4.6 postinstall /Users/db/clones/react-mapbox-gl/example/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js
npm WARN react-mapbox-gl-example@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 install: `node install`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
added 582 packages from 549 contributors and audited 2385 packages in 12.926s
found 55 vulnerabilities (23 low, 22 moderate, 10 high)
run `npm audit fix` to fix them, or `npm audit` for details
$ npm start
> react-mapbox-gl-example@1.0.0 start /Users/db/clones/react-mapbox-gl/example
> cross-env NODE_ENV=dev node dev.server.js
ts-loader: Using typescript@2.5.3 and /Users/db/clones/react-mapbox-gl/example/tsconfig.json
Hash: 2e36eb66fdda6477bb22
Version: webpack 3.5.6
Time: 4942ms
Asset Size Chunks Chunk Names
bundle.js 2.6 MB 0 [emitted] [big] main
[0] ./node_modules/react/index.js 190 bytes {0} [built]
[4] ./node_modules/styled-components/dist/styled-components.es.js 59.9 kB {0} [built]
[9] ./node_modules/react-router/es/RouteUtils.js 2.43 kB {0} [built]
[14] ./node_modules/react-router/es/PatternUtils.js 7.34 kB {0} [built]
[59] ./src/index.tsx 1.14 kB {0} [built]
[66] ./node_modules/react-router/es/index.js 1.46 kB {0} [built]
[97] multi ./src/index 28 bytes {0} [built]
[102] ./node_modules/react-dom/index.js 1.36 kB {0} [built]
[145] ./node_modules/react-router/es/hashHistory.js 174 bytes {0} [built]
[148] ./src/home.tsx 2.83 kB {0} [built] [1 error]
[153] ./src/home-code.ts 558 bytes {0} [built]
[163] ./src/logo.tsx 3.1 kB {0} [built]
[164] ./src/demos/index.tsx 3.76 kB {0} [built]
[213] ./src/root.tsx 4.04 kB {0} [built]
[214] ./src/documentation.tsx 610 bytes {0} [built]
+ 222 hidden modules
ERROR in ./src/demos/threeDMap.tsx
(2,38): error TS2307: Cannot find module '../../../'.
ERROR in ./src/demos/switchStyle.tsx
(2,69): error TS2307: Cannot find module '../../../'.
ERROR in ./src/demos/switchStyle.tsx
(3,34): error TS2307: Cannot find module 'mapbox-gl'.
ERROR in ./src/demos/switchStyle.tsx
(197,28): error TS7006: Parameter 'evt' implicitly has an 'any' type.
ERROR in ./src/demos/londonCycle.tsx
(2,54): error TS2307: Cannot find module '../../../'.
ERROR in ./src/demos/htmlFeatures.tsx
(2,39): error TS2307: Cannot find module '../../../'.
ERROR in ./src/demos/htmlCluster.tsx
(2,55): error TS2307: Cannot find module '../../../'.
ERROR in ./src/demos/htmlCluster.tsx
(51,18): error TS2503: Cannot find namespace 'GeoJSON'.
ERROR in ./src/demos/htmlCluster.tsx
(70,18): error TS2503: Cannot find namespace 'GeoJSON'.
ERROR in ./src/demos/htmlCluster.tsx
(94,18): error TS2503: Cannot find namespace 'GeoJSON'.
ERROR in ./src/demos/heatmap.tsx
(2,47): error TS2307: Cannot find module '../../../'.
ERROR in ./src/demos/geojsonLayer.tsx
(2,45): error TS2307: Cannot find module '../../../'.
ERROR in ./src/demos/geojsonLayer.tsx
(3,27): error TS2307: Cannot find module 'mapbox-gl'.
ERROR in ./src/demos/allShapes.tsx
(8,8): error TS2307: Cannot find module '../../../'.
ERROR in ./src/home.tsx
(5,47): error TS2307: Cannot find module '../../'.
ERROR in ./src/home.tsx
Module not found: Error: Can't resolve '../../' in '/Users/db/clones/react-mapbox-gl/example/src'
@ ./src/home.tsx 16:9-26
@ ./src/index.tsx
@ multi ./src/index
ERROR in ./src/demos/londonCycle.tsx
Module not found: Error: Can't resolve '../../../' in '/Users/db/clones/react-mapbox-gl/example/src/demos'
@ ./src/demos/londonCycle.tsx 22:9-29
@ ./src/demos/sections.tsx
@ ./src/demos/index.tsx
@ ./src/index.tsx
@ multi ./src/index
ERROR in ./src/demos/allShapes.tsx
Module not found: Error: Can't resolve '../../../' in '/Users/db/clones/react-mapbox-gl/example/src/demos'
@ ./src/demos/allShapes.tsx 14:9-29
@ ./src/demos/sections.tsx
@ ./src/demos/index.tsx
@ ./src/index.tsx
@ multi ./src/index
ERROR in ./src/demos/htmlFeatures.tsx
Module not found: Error: Can't resolve '../../../' in '/Users/db/clones/react-mapbox-gl/example/src/demos'
@ ./src/demos/htmlFeatures.tsx 14:9-29
@ ./src/demos/sections.tsx
@ ./src/demos/index.tsx
@ ./src/index.tsx
@ multi ./src/index
ERROR in ./src/demos/threeDMap.tsx
Module not found: Error: Can't resolve '../../../' in '/Users/db/clones/react-mapbox-gl/example/src/demos'
@ ./src/demos/threeDMap.tsx 14:9-29
@ ./src/demos/sections.tsx
@ ./src/demos/index.tsx
@ ./src/index.tsx
@ multi ./src/index
ERROR in ./src/demos/htmlCluster.tsx
Module not found: Error: Can't resolve '../../../' in '/Users/db/clones/react-mapbox-gl/example/src/demos'
@ ./src/demos/htmlCluster.tsx 14:9-29
@ ./src/demos/sections.tsx
@ ./src/demos/index.tsx
@ ./src/index.tsx
@ multi ./src/index
ERROR in ./src/demos/switchStyle.tsx
Module not found: Error: Can't resolve '../../../' in '/Users/db/clones/react-mapbox-gl/example/src/demos'
@ ./src/demos/switchStyle.tsx 14:9-29
@ ./src/demos/sections.tsx
@ ./src/demos/index.tsx
@ ./src/index.tsx
@ multi ./src/index
ERROR in ./src/demos/geojsonLayer.tsx
Module not found: Error: Can't resolve '../../../' in '/Users/db/clones/react-mapbox-gl/example/src/demos'
@ ./src/demos/geojsonLayer.tsx 14:9-29
@ ./src/demos/sections.tsx
@ ./src/demos/index.tsx
@ ./src/index.tsx
@ multi ./src/index
ERROR in ./src/demos/heatmap.tsx
Module not found: Error: Can't resolve '../../../' in '/Users/db/clones/react-mapbox-gl/example/src/demos'
@ ./src/demos/heatmap.tsx 14:9-29
@ ./src/demos/sections.tsx
@ ./src/demos/index.tsx
@ ./src/index.tsx
@ multi ./src/index
webpack: Failed to compile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment