Those are TypeScript errors, probably due to an unsupported version of Node.js and/or TypeScript compiler being used. Run node -v on a terminal window to check your current version, anything below 18 is unsupported.
If that is the case I would strongly suggest to remove your current installation of both TypeScript and Node.js and re-install it again. To remove them:
sudo npm remove typescript
sudo apt purge nodejs
Here are some general instructions on how to install it:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
# Make sure to add this to your `~/.profile` or `~/.bashrc` to ensure this location is always available, not only during this terminal session.
export PATH=~/.npm-global/bin:$PATH
npm install -g typescript
Please do not use node-typescript as it's severely outdated (last updated 11 years ago).
Download the appropriate branch of the pop-shell repository. Since ZorinOS 16 is based off of Ubuntu 20.04, you need to use the Jammy branch:
If you have added pop-os repository to your software sources to achive this, once you are done with installing, I suggest you remove that repository to avoid future grief with Pop-OS updates messing with your ZorinOS. See this:
Thank you for the instruction!
PS. I was getting typescript not installed errors attempting this solution. I then gave up. And then, for lols, tried with
When you install packages globally (that's what the -g flag stands for) you need elevated permissions. The fact that you needed to use sudo makes me think that you skipped this step:
npm config set prefix '~/.npm-global'
as that will ensure that packages installed with the -g flag are saved in that location, under your user's home directory and thus no need for additional permissions.
This obviously is not required, but it's desirable, as it reduces the risk of security vulnerabilities. Since you've already installed it using sudo I wouldn't necessarily recommend uninstalling everything, but for future reference remember to do this as it's a simple step that can make a big difference.