Open sixclones opened 5 years ago
Fair warning: I know nothing about nodeJS/npm/nvm so this is the blind leading the blind
I was getting the same error and decided to give up, and uninstalled everything nodejs related (I don't know if this is necessary), and then came back to try again and got it working. Or at least it installs, launches, and appears to be working. Here is what I did:
install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
reload .bashrc to get nvm recognized by bash
source ~/.bashrc
use nvm to install current version of node, and use it. And have nvm install npm
nvm install node
nvm use node
nvm install-latest-npm
Use npm to install shader-school
npm install -g shader school
move to some directory to run shader-school, becase it will make a bunch of directories
run shader-school
shader-school
Hope this helps
@Pyrizhki hey bro. which version of node u used?
I'm getting the following using the latest version of node.
[2/4] 🚚 Fetching packages...
error pngjs@0.4.0: The engine "node" is incompatible with this module. Expected version "0.8.x". Got "14.3.0"
error Found incompatible module.
@robksawyer Same issue just popped to me, were you able to solve it?
The following worked for me when installing it locally on ArchLinux from a clone of the repository. (I am writing this comment to report that this can still work.
Here's what I did:
# clone the repo
$ git clone https://github.com/stackgl/shader-school
$ cd shader-school
# install dependencies
$ npm install
# start the server
$ npm start
And then I could visit http://localhost:12492 for the course.
For reference, I have the following versions of node & npm:
$ node --version
v16.10.0
$ npm --version
7.24.2
Typed
sudo npm i -g shader-school
and got