Giter Club home page Giter Club logo

Comments (5)

blacha avatar blacha commented on September 18, 2024

Hi @pnorman, I have attempted to reproduce this issue, I started from a fresh nodejs docker container and it all worked fine.

Here are the commands I ran.

docker run -it node:18 /bin/bash

mkdir test-folder
cd test-folder
npm init --yes 
npm install @basemaps/sprites

node_modules/.bin/basemaps-sprites --help

Could you provide more information about your nodejs versions and system setup?

from basemaps.

pnorman avatar pnorman commented on September 18, 2024
pnorman@took:~/sprites_test$ npm --version
7.5.2
pnorman@took:~/sprites_test$ nodejs --version
v12.22.12

This is on a clean Debian stable release

from basemaps.

blacha avatar blacha commented on September 18, 2024

Node v12 reached end of life in April 2022 https://github.com/nodejs/release#release-schedule
Node v14 will each end of life at the end of April 2023,

The current LTS is v18,
We only test back to node v16, However as far as I can v14 works as expected.

I see the docs mention > v12, I will update that.

from basemaps.

pnorman avatar pnorman commented on September 18, 2024

engines should also be set in package.json if there are minimum versions - Debian and Ubuntu LTS both have Node 12 in their latest release, so it's fairly common.

from basemaps.

blacha avatar blacha commented on September 18, 2024

engines should also be set in package.json if there are minimum versions

It is currently set as the default for what is needed for ESM.

I have made #2749 which will allow node12 to work with sprites.
But then I have also made a PR to say that we only support node>16 with the engines #2748

But considering that it was EOL'd a year ago, I would highly recommend using something like fnm or n to install a current LTS.

from basemaps.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.