Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install shader-school #175

Open
sixclones opened this issue Aug 31, 2018 · 5 comments
Open

Can't install shader-school #175

sixclones opened this issue Aug 31, 2018 · 5 comments

Comments

@sixclones
Copy link

sixclones commented Aug 31, 2018

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
Copy link

Piroshky commented Nov 12, 2019

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
Copy link

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

@robksawyer
Copy link

I'm getting the following using the latest version of node.

[2/4] 🚚  Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version "0.8.x". Got "14.3.0"
error Found incompatible module.

@danieltorrer
Copy link

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

@heyLu
Copy link

heyLu commented Oct 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants