caderek / aocrunner

Advent of Code runner
ISC License
163 stars 23 forks source link

Node version 17 is required #1

Closed billyjs closed 2 years ago

billyjs commented 2 years ago

with node 16.5.0 running npx aocrunner init has this error

file:///Users/bschulze/.npm/_npx/b3b346747336e290/node_modules/aocrunner/lib/io/copy.js:3
  fs.cpSync(fromDir, toDir, { recursive: true });
     ^

TypeError: fs.cpSync is not a function
    at copy (file:///Users/bschulze/.npm/_npx/b3b346747336e290/node_modules/aocrunner/lib/io/copy.js:3:6)
    at init (file:///Users/bschulze/.npm/_npx/b3b346747336e290/node_modules/aocrunner/lib/actions/init.js:43:3)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

when running with node 17.2.0 successfully created

caderek commented 2 years ago

Current LTS version should also work > 16.13.0

I will fix the README.

caderek commented 2 years ago

Added the info to the README.