streetsidesoftware / cspell

A Spell Checker for Code!

Home Page:https://cspell.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSpell is not running on Node 12

lxs602 opened this issue · comments

Kind of Issue

Runtime - command-line tools, Crash / Error

Tool or Library

cspell

Version

8.6.0

Supporting Library

No response

OS

Linux

OS Version

Ubuntu 22.04

Description

user@home$ cspell -u check file.html
file:///usr/local/lib/node_modules/cspell/dist/esm/app.mjs:21
.argParser((value, prev) => prev?.concat(value) || [value]);
^

SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)

What other information do you need?

Steps to Reproduce

sudo apt-get install npm
sudo npm install -g cspell

Expected Behavior

No response

Additional Information

npm --version 8.5.1
node --version 12.22.9

cspell.json

No response

cspell.config.yaml

No response

Example Repository

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Hi, I hope I have done everything rightly...

Node 12 is very old and unsuppored

@lxs602,

@nschonni is right. You would need to use v5 to run on Node 12. Another option is to use the docker container:

Example to check Markdown files:

docker run -v $PWD:/workdir ghcr.io/streetsidesoftware/cspell:latest "**/*.md"

Thank you

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.