Skip to content

Instantly share code, notes, and snippets.

@chase-moskal
Created September 7, 2023 06:28
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 chase-moskal/2b53cabeb52014b1e53138d7a374bd40 to your computer and use it in GitHub Desktop.
Save chase-moskal/2b53cabeb52014b1e53138d7a374bd40 to your computer and use it in GitHub Desktop.
shelljs node 20.5 issue
❯ node -v
v20.6.0
❯ npm run build
> @benev/turtle@0.5.0 build
> run-s clean compile permissions demo
> @benev/turtle@0.5.0 clean
> rm -rf x && mkdir x
> @benev/turtle@0.5.0 compile
> tsc
> @benev/turtle@0.5.0 permissions
> chmod +x x/cli.js
> @benev/turtle@0.5.0 demo
> node x/cli.js --in='s/demo:x/demo' --out='x/demo' --exclude='**/*.partial.html.js' +verbose
/home/chase/work/@benev/turtle/node_modules/shelljs/src/cat.js:4
common.register('cat', _cat, {
^
TypeError: common.register is not a function
at Object.<anonymous> (/home/chase/work/@benev/turtle/node_modules/shelljs/src/cat.js:4:8)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at /home/chase/work/@benev/turtle/node_modules/shelljs/shell.js:25:3
at Array.forEach (<anonymous>)
at Object.<anonymous> (/home/chase/work/@benev/turtle/node_modules/shelljs/shell.js:24:23)
Node.js v20.6.0
ERROR: "demo" exited with 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment