Installing Preact two ways shown. At first the official way did not work for me. I had to fix permissions for the global node modules, official solution. Then the alternative way worked, and after that was done the official way started to work too.
Source code viewer
# Official way. npx preact-cli create <template-name> <app-name> # Alternative way. npm install -g preact-cli preact create typescript my-projectProgramming Language: Bash