Please submit a pull request.  We could also recommend that people use Node
6+.

Tim


On Tue, May 9, 2017 at 10:51 AM Mike Pence via OpenLayers Dev <
openlayers-dev+apn2wqfxtylfwbnrvayqi-4gzv_equpzkf_ykwyndstkmi...@googlegroups.com>
wrote:

> I am getting this error when running `npm install`:
>
> /home/mikepence/proj/openlayers/tasks/build-ext.js:17
>       let name = `ol.ext.${ext.name || ext.module}`;
>       ^^^
>
> SyntaxError: Block-scoped declarations (let, const, function, class) not
> yet supported outside strict mode
>     at exports.runInThisContext (vm.js:53:16)
>     at Module._compile (module.js:374:25)
>     at Object.Module._extensions..js (module.js:417:10)
>     at Module.load (module.js:344:32)
>     at Function.Module._load (module.js:301:12)
>     at Module.require (module.js:354:17)
>     at require (internal/module.js:12:17)
>     at Object.<anonymous>
> (/home/mikepence/proj/openlayers/tasks/install.js:1:78)
>     at Module._compile (module.js:410:26)
>     at Object.Module._extensions..js (module.js:417:10)
>
> Using node v4.2.6 and npm v3.5.2.
>
> Adding "use strict"; in build-ext.js at line 14 seems to fix that. Should
> I make a PR for that?
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenLayers Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/openlayers-dev.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/openlayers-dev/af8abca7-4095-4403-b005-7250cf269971%40googlegroups.com
> <https://groups.google.com/d/msgid/openlayers-dev/af8abca7-4095-4403-b005-7250cf269971%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenLayers Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/openlayers-dev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/openlayers-dev/CAKdrn%2BevWY0QmrxHNYre-jA7c%3DKN%3DOCW8TjLDROZEqadEiZq5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to