stackgl / shader-school

:mortar_board: A workshopper for GLSL shaders and graphics programming
Other
4.27k stars 251 forks source link

Can't install shader-school #175

Open sixclones opened 5 years ago

sixclones commented 5 years ago

Typed sudo npm i -g shader-school and got

npm ERR! code 1
npm ERR! Command failed: /usr/local/bin/git clone --depth=1 -q -b harmony https://github.com/ariya/esprima.git /Users/Me/.npm/_cacache/tmp/git-clone-275eff38
npm ERR! /Users/Me/.npm/_cacache/tmp/git-clone-275eff38/.git: Permission denied
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Me/.npm/_logs/2018-08-31T10_39_10_812Z-debug.log
Piroshky commented 4 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:

  1. install nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash

  2. reload .bashrc to get nvm recognized by bash source ~/.bashrc

  3. 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

  4. Use npm to install shader-school npm install -g shader school

  5. move to some directory to run shader-school, becase it will make a bunch of directories

  6. run shader-school shader-school

Hope this helps

guopeng1994 commented 4 years ago

@Pyrizhki hey bro. which version of node u used?

robksawyer commented 3 years ago

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.
danieltorrer commented 3 years ago

@robksawyer Same issue just popped to me, were you able to solve it?

heyLu commented 2 years ago

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