I cloned the git repo and tried to compile the trips example. After running npm install, I got the following output:
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN [email protected] requires a peer of acorn@^6.0.0 but none was installed.
npm WARN [email protected] requires a peer of acorn@^6.0.0 but none was installed.
npm WARN [email protected] No repository field.
Running npm start I get the following error:
ERROR in ./app.js
Module build failed (from ./node_modules/buble-loader/index.js):
BubleLoaderError:
88 : const {viewState, controller = true, baseMap = true} = this.props;
89 :
90 : return (
91 : <DeckGL
92 : layers={this._renderLayers()}
^
Unexpected token (92:14)
at Object.module.exports (/home/connor/Documents/deck.gl/examples/website/trips/node_modules/buble-loader/index.js:24:69)
@ multi (webpack)-dev-server/client?http://localhost:8080 (webpack)/hot/dev-server.js ./app.js app[2]
I'm on npm version 3.5.2
[Update]
I was able to update npm to 6.4.1 and I installed acorn manually, then ran npm install again. I'm still getting this error.
use yarn instead of npm install
That fixed my issue -- thanks
@jianhuang01 This should be fixed after #2888 ?
Most helpful comment
use
yarninstead ofnpm install