stackgl / shader-school

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

Unable to install shader-school using npm #95

Open vishangshah opened 9 years ago

vishangshah commented 9 years ago

Hello,

I am getting lots of errors when installing using npm install -g shader-school. I have installed node.js and git.

Am I missing any step?

Thanks

max-mapper commented 9 years ago

@vishangshah you might have to use 'sudo' e.g. 'sudo npm install shader-school -g'

if that doesnt work can you paste the error you get here?

vishangshah commented 9 years ago

@maxogden I am installing it on windows, so sudo doesn't work in node.js command window.

Attaching npm-debug.log here by renaming it to npm-debug.jpg, npm-debug

Thanks

hughsk commented 9 years ago

@vishangshah you're not able to treat text like an image like that – could you please paste the logs as plain text in this issue? Thanks!

vishangshah commented 9 years ago

@hughsk Looks like the errors, warnings start with git cloning.

npm WARN deprecated rework-inline@0.2.0: deprecated in favor of rework-import npm WARN git config --get remote.origin.url returned wrong result (git://github.com/pipobscure/fsevents) undefined npm WARN git config --get remote.origin.url returned wrong result (git://github.com/pipobscure/fsevents) undefined npm WARN git config --get remote.origin.url returned wrong result (git@github.com:pipobscure/fsevents) undefined npm WARN git config --get remote.origin.url returned wrong result (git@github.com:pipobscure/fsevents) undefined npm WARN git config --get remote.origin.url returned wrong result (https://github.com/ariya/esprima.git) undefined npm WARN git config --get remote.origin.url returned wrong result (https://github.com/ariya/esprima.git) undefined npm ERR! git clone git@github.com:pipobscure/fsevents undefined npm ERR! git clone git@github.com:pipobscure/fsevents undefined npm WARN optional dep failed, continuing fsevents@pipobscure/fsevents#7dcdf9fa3f8956610fd6f69f72c67bace2de7138 npm WARN optional dep failed, continuing fsevents@pipobscure/fsevents#7dcdf9fa3f8956610fd6f69f72c67bace2de7138 \

Then long list of errors like below -

stanford-dragon@1.0.0 clean C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\stanford -dragon rm models/*.ply

'rm' is not recognized as an internal or external command, operable program or batch file.

npm ERR! stanford-dragon@1.0.0 clean: rm models/*.ply npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the stanford-dragon@1.0.0 clean script. npm ERR! This is most likely a problem with the stanford-dragon package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! rm models/_.ply npm ERR! You can get their info via: npm ERR! npm owner ls stanford-dragon npm ERR! There is likely additional logging output above. npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "clean" npm ERR! cwd C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\stanford-dragon npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.23 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\stanford-dragon\npm-debug .log npm ERR! not ok code 0 npm ERR! Error: ENOENT, lstat 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\browser ify\node_modules\crypto-browserify\nodemodules\sha.js\test\prepare\vectors\byte0045.dat' npm ERR! If you need help, you may report this *entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "shader-school" npm ERR! cwd D:\lab\shader_school npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.23 npm ERR! path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\browserify\node_modules\ crypto-browserify\node_modules\sha.js\test\prepare\vectors\byte0045.dat npm ERR! fstream_path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\nodemodules\browserify\node modules\crypto-browserify\node_modules\sha.js\test\prepare\vectors\byte0045.dat npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.:107:15) npm ERR! Error: ENOENT, open 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\browseri fy\node_modules\module-deps\node_modules\browser-resolve\test\fixtures\node_modules\module-j\index.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "shader-school"

Dakror commented 9 years ago

Same here, also trying to compile on Windows (7). Apparently the stanford-dragon package tries to executer the rm command which is Unix only

todrobbins commented 9 years ago

I'm getting similar errors installing on OSX with sudo. See: https://gist.github.com/todrobbins/9069402c257d70c013fe

mikolalysenko commented 9 years ago

@todrobbins you need to relicense XCode after the latest update. Just do sudo git status and agree to all the legal boilerplate Apple throws at you.

todrobbins commented 9 years ago

@mikolalysenko you, sir, are a wizard! Thank you!

todrobbins commented 9 years ago

I did run into another error although shader-school is working fine right now:

Package xcb-shm was not found in the pkg-config search path.
Perhaps you should add the directory containing `xcb-shm.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xcb-shm', required by 'cairo', not found
gyp: Call to './util/has_cairo_freetype.sh' returned exit status 0. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:807:12)
gyp ERR! System Darwin 13.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/shader-school/node_modules/gl-axes/node_modules/vectorize-text/node_modules/canvas-browserify/node_modules/canvas
gyp ERR! node -v v0.10.28
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
dy-dx commented 9 years ago

@vishangshah @Dakror The stanford-dragon package has been updated to work on Windows, can you try installing shader-school again?

vishangshah commented 9 years ago

I am still getting lot of errors on Windows 7.

npm WARN deprecated rework-inline@0.2.0: deprecated in favor of rework-import npm WARN engine pngjs@0.4.0: wanted: {"node":"0.8.x"} (current: {"node":"0.10.31","npm":"1.4.23"}) npm WARN git config --get remote.origin.url returned wrong result (git://github.com/pipobscure/fsevents) undefined npm WARN git config --get remote.origin.url returned wrong result (git://github.com/pipobscure/fsevents) undefined npm WARN git config --get remote.origin.url returned wrong result (https://github.com/ariya/esprima.git) undefined npm WARN git config --get remote.origin.url returned wrong result (https://github.com/ariya/esprima.git) undefined npm WARN git config --get remote.origin.url returned wrong result (git@github.com:pipobscure/fsevents) undefined npm WARN git config --get remote.origin.url returned wrong result (git@github.com:pipobscure/fsevents) undefined npm ERR! git clone https://github.com/ariya/esprima.git undefined npm ERR! git clone https://github.com/ariya/esprima.git undefined npm ERR! Error: ENOENT, lstat 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify -live\node_modules\glslify-bundle\node_modules\glslify-stream\node_modules\glsl-tokenizer\lib\operators.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "shader-school" npm ERR! cwd D:\lab\shader_school npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.23 npm ERR! path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify-live\node_module s\glslify-bundle\node_modules\glslify-stream\node_modules\glsl-tokenizer\lib\operators.js npm ERR! fstream_path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify-live\nod e_modules\glslify-bundle\node_modules\glslify-stream\node_modules\glsl-tokenizer\lib\operators.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.:107:15) npm ERR! error rolling back Error: EPERM, unlink 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\n ode_modules\glslify-live\nodemodules\esprima\test\test.js' npm ERR! error rolling back glslify-live@2.0.4 { [Error: EPERM, unlink 'C:\Users\vishang.shah\AppData\Roaming\npm\node modules\shader-school\node_modules\glslify-live\node_modules\esprima\test\test.js'] npm ERR! error rolling back errno: 50, npm ERR! error rolling back code: 'EPERM', npm ERR! error rolling back path: 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_m odules\glslify-live\node_modules\esprima\test\test.js' } npm ERR! Error: EPERM, mkdir 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify- live\node_modules\glslify-bundle\node_modules\glslify-stream\node_modules\resolve\lib' npm ERR! { [Error: EPERM, mkdir 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glsl ify-live\node_modules\glslify-bundle\node_modules\glslify-stream\node_modules\resolve\lib'] npm ERR! errno: 50, npm ERR! code: 'EPERM', npm ERR! path: 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify-liv e\node_modules\glslify-bundle\node_modules\glslify-stream\node_modules\resolve\lib', npm ERR! fstream_type: 'File', npm ERR! fstream_path: 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\gls lify-live\node_modules\glslify-bundle\node_modules\glslify-stream\node_modules\resolve\lib\core.js', npm ERR! fstream_class: 'FileWriter', npm ERR! fstream_stack: npm ERR! [ 'C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:171:23', npm ERR! 'C:\Program Files\nodejs\node_modules\npm\node_modules\mkdirp\index.js:46:53', npm ERR! 'Object.oncomplete (fs.js:107:15)' ] } npm ERR! npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "shader-school" npm ERR! cwd D:\lab\shader_school npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.23 npm ERR! path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify-live\node_module s\glslify-bundle\node_modules\glslify-stream\node_modules\resolve\lib npm ERR! fstream_path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify-live\nod e_modules\glslify-bundle\node_modules\glslify-stream\node_modules\resolve\lib\core.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code EPERM npm ERR! errno 50 npm ERR! stack Error: EPERM, mkdir 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\gl slify-live\node_modules\glslify-bundle\node_modules\glslify-stream\node_modules\resolve\lib' npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:171:23 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\mkdirp\index.js:46:53 npm ERR! fstream_stack Object.oncomplete (fs.js:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify \node_modules\concat-stream\node_modules\readable-stream\node_modules\core-util-is\float.patch' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "shader-school" npm ERR! cwd D:\lab\shader_school npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.23 npm ERR! path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify\node_modules\con cat-stream\node_modules\readable-stream\node_modules\core-util-is\float.patch npm ERR! fstream_path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify\node_mod ules\concat-stream\node_modules\readable-stream\node_modules\core-util-is\float.patch npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify \node_modules\static-eval\node_modules\escodegen\node_modules\esprima\README.md' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "shader-school" npm ERR! cwd D:\lab\shader_school npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.23 npm ERR! path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify\node_modules\sta tic-eval\node_modules\escodegen\node_modules\esprima\README.md npm ERR! fstream_path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify\node_mod ules\static-eval\node_modules\escodegen\node_modules\esprima\README.md npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify -live\node_modules\glslify-bundle\node_modules\glslify-stream\node_modules\glsl-parser\lib\index.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "shader-school" npm ERR! cwd D:\lab\shader_school npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.23 npm ERR! path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify-live\node_module s\glslify-bundle\node_modules\glslify-stream\node_modules\glsl-parser\lib\index.js npm ERR! fstream_path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify-live\nod e_modules\glslify-bundle\node_modules\glslify-stream\node_modules\glsl-parser\lib\index.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify \node_modules\concat-stream\node_modules\readable-stream\node_modules\isarray\build\build.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "shader-school" npm ERR! cwd D:\lab\shader_school npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.23 npm ERR! path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify\node_modules\con cat-stream\node_modules\readable-stream\node_modules\isarray\build\build.js npm ERR! fstream_path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\glslify\node_mod ules\concat-stream\node_modules\readable-stream\node_modules\isarray\build\build.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.:107:15) npm ERR! error rolling back Error: EPERM, unlink 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\n ode_modules\glslify-live\node_modules\esprima\test\test.js' npm ERR! error rolling back shader-school@1.0.2 { [Error: EPERM, unlink 'C:\Users\vishang.shah\AppData\Roaming\npm\node _modules\shader-school\node_modules\glslify-live\node_modules\esprima\test\test.js'] npm ERR! error rolling back errno: 50, npm ERR! error rolling back code: 'EPERM', npm ERR! error rolling back path: 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_m odules\glslify-live\node_modules\esprima\test\test.js' } npm ERR! not found: git npm ERR! npm ERR! Failed using git. npm ERR! This is most likely not a problem with npm itself. npm ERR! Please check if you have git installed and in your PATH.

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "shader-school" npm ERR! cwd D:\lab\shader_school npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.23 npm ERR! code ENOGIT npm ERR! Error: ENOENT, lstat 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\autopre fixer\node_modules\caniuse-db\features-json\contentsecuritypolicy.json' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "shader-school" npm ERR! cwd D:\lab\shader_school npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.23 npm ERR! path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\autoprefixer\node_module s\caniuse-db\features-json\contentsecuritypolicy.json npm ERR! fstream_path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\autoprefixer\nod e_modules\caniuse-db\features-json\contentsecuritypolicy.json npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\beefy\n ode_modules\resolve\test\resolver\baz\quux.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "shader-school" npm ERR! cwd D:\lab\shader_school npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.23 npm ERR! path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\beefy\node_modules\resol ve\test\resolver\baz\quux.js npm ERR! fstream_path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\beefy\node_modul es\resolve\test\resolver\baz\quux.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.:107:15) npm ERR! Error: ENOENT, lstat 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\browser ify\node_modules\umd\node_modules\rfile\node_modules\resolve\index.js' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "shader-school" npm ERR! cwd D:\lab\shader_school npm ERR! node -v v0.10.31 npm ERR! npm -v 1.4.23 npm ERR! path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_modules\browserify\node_modules\ umd\node_modules\rfile\node_modules\resolve\index.js npm ERR! fstream_path C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\nodemodules\browserify\node modules\umd\node_modules\rfile\node_modules\resolve\index.js npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34

Thanks

hughsk commented 9 years ago

@vishangshah I believe this is because you don't have git installed in the environment you're using npm to install shader-school with. Maybe it will work from git bash?

npm ERR! error rolling back code: 'EPERM',
npm ERR! error rolling back path: 'C:\Users\vishang.shah\AppData\Roaming\npm\node_modules\shader-school\node_m
odules\glslify-live\node_modules\esprima\test\test.js' }
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
rcanepa commented 9 years ago

Hi everyone, I am having issues with the install process too. I am using Ubuntu 14.04 and I do have install git and node.

I will leave the console output here (I executed the command using sudo):

rcanepa@rcanepa-R480:~/Development/tutorials/workshoppers/shader-school$ sudo npm install -g shader-school
npm WARN deprecated rework-inline@0.2.0: deprecated in favor of rework-import
npm ERR! fetch failed https://registry.npmjs.org/find-file/-/find-file-0.1.4.tgz
npm ERR! fetch failed https://registry.npmjs.org/raf-component/-/raf-component-1.1.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/glsl-extract/-/glsl-extract-0.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/syntax-error/-/syntax-error-1.1.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/cssauron/-/cssauron-0.0.3.tgz
npm ERR! fetch failed https://registry.npmjs.org/escodegen/-/escodegen-1.3.3.tgz
npm ERR! fetch failed https://registry.npmjs.org/cssauron-glsl/-/cssauron-glsl-1.0.0.tgz
npm WARN optional dep failed, continuing fsevents@0.2.1
npm WARN optional dep failed, continuing fsevents@0.2.1
npm ERR! fetch failed https://registry.npmjs.org/astw/-/astw-0.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/glsl-tokenizer/-/glsl-tokenizer-0.0.8.tgz
npm ERR! fetch failed https://registry.npmjs.org/mime-db/-/mime-db-1.3.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/triangulate-polyline/-/triangulate-polyline-1.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/process/-/process-0.6.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/ripemd160/-/ripemd160-0.2.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/JSONStream/-/JSONStream-0.7.4.tgz
npm ERR! fetch failed https://registry.npmjs.org/sha.js/-/sha.js-2.1.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/private/-/private-0.1.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/astw/-/astw-0.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/planar-dual/-/planar-dual-1.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/point-in-big-polygon/-/point-in-big-polygon-1.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/edges-to-adjacency-list/-/edges-to-adjacency-list-1.0.0.tgz

> canvas@1.1.6 install /usr/lib/node_modules/shader-school/node_modules/gl-axes/node_modules/vectorize-text/node_modules/canvas-browserify/node_modules/canvas
> node-gyp rebuild

Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
gyp: Call to './util/has_cairo_freetype.sh' returned exit status 0. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 3.13.0-40-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/shader-school/node_modules/gl-axes/node_modules/vectorize-text/node_modules/canvas-browserify/node_modules/canvas
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok 
npm ERR! fetch failed https://registry.npmjs.org/permutation-parity/-/permutation-parity-1.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/escodegen/-/escodegen-1.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/buffer/-/buffer-2.3.4.tgz
npm WARN optional dep failed, continuing canvas@1.1.6
npm ERR! fetch failed https://registry.npmjs.org/private/-/private-0.1.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/edges-to-adjacency-list/-/edges-to-adjacency-list-1.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/omggif/-/omggif-1.0.5.tgz
npm ERR! fetch failed https://registry.npmjs.org/node-bitmap/-/node-bitmap-0.0.1.tgz
npm WARN engine pngjs@0.4.0: wanted: {"node":"0.8.x"} (current: {"node":"0.10.33","npm":"1.4.28"})
npm ERR! fetch failed https://registry.npmjs.org/invert-permutation/-/invert-permutation-1.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/omggif/-/omggif-1.0.5.tgz
npm ERR! fetch failed https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/compare-angle/-/compare-angle-1.0.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/is-little-endian/-/is-little-endian-0.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/is-little-endian/-/is-little-endian-0.0.0.tgz

> stanford-dragon@1.1.1 postinstall /usr/lib/node_modules/shader-school/node_modules/stanford-dragon
> npm run build

|
> stanford-dragon@1.1.1 build /usr/lib/node_modules/shader-school/node_modules/stanford-dragon
> npm run res1 && npm run res2 && npm run res3 && npm run res4

\
> stanford-dragon@1.1.1 res1 /usr/lib/node_modules/shader-school/node_modules/stanford-dragon
> node lib/build.js models/dragon_vrip.ply.gz 1.js

parsing ply file
unpacking positions
generating module
writing module
\
> stanford-dragon@1.1.1 res2 /usr/lib/node_modules/shader-school/node_modules/stanford-dragon
> node lib/build.js models/dragon_vrip_res2.ply.gz 2.js

parsing ply file
unpacking positions
generating module
writing module
-
> stanford-dragon@1.1.1 res3 /usr/lib/node_modules/shader-school/node_modules/stanford-dragon
> node lib/build.js models/dragon_vrip_res3.ply.gz 3.js

parsing ply file
unpacking positions
generating module
writing module
|
> stanford-dragon@1.1.1 res4 /usr/lib/node_modules/shader-school/node_modules/stanford-dragon
> node lib/build.js models/dragon_vrip_res4.ply.gz 4.js

parsing ply file
unpacking positions
generating module
writing module
npm ERR! Error: Hostname/IP doesn't match certificate's altnames
npm ERR!     at SecurePair.<anonymous> (tls.js:1389:23)
npm ERR!     at SecurePair.emit (events.js:92:17)
npm ERR!     at SecurePair.maybeInitFinished (tls.js:979:10)
npm ERR!     at CleartextStream.read [as _read] (tls.js:471:13)
npm ERR!     at CleartextStream.Readable.read (_stream_readable.js:340:10)
npm ERR!     at EncryptedStream.write [as _write] (tls.js:368:25)
npm ERR!     at doWrite (_stream_writable.js:225:10)
npm ERR!     at writeOrBuffer (_stream_writable.js:215:5)
npm ERR!     at EncryptedStream.Writable.write (_stream_writable.js:182:11)
npm ERR!     at write (_stream_readable.js:601:24)
npm ERR!     at flow (_stream_readable.js:610:7)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.13.0-40-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "shader-school"
npm ERR! cwd /home/rcanepa/Development/tutorials/workshoppers/shader-school
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! not ok code 0

Has anyone resolved the problem?

rcanepa commented 9 years ago

I solved the problem executing this command (probably not secure):

npm config set strict-ssl false

More information here: http://stackoverflow.com/questions/23025719/node-js-npm-install-express-failed-to-fetch-from-registry

pavlelekic commented 9 years ago

I get a different error:

> shader-school@1.0.2 start F:\shader-school
> mkdir answers; cd answers && NODE_ENV=development node ..

A subdirectory or file answers already exists.
Error occurred while processing: answers.
A subdirectory or file cd already exists.
Error occurred while processing: cd.
A subdirectory or file answers already exists.
Error occurred while processing: answers.

npm ERR! shader-school@1.0.2 start: `mkdir answers; cd answers && NODE_ENV=development node ..`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the shader-school@1.0.2 start script.
npm ERR! This is most likely a problem with the shader-school package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     mkdir answers; cd answers && NODE_ENV=development node ..
npm ERR! You can get their info via:
npm ERR!     npm owner ls shader-school
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! cwd F:\shader-school
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     F:\shader-school\npm-debug.log
npm ERR! not ok code 0

Same thing happens if I delete the answers dir.

hughsk commented 9 years ago

This should (in theory) be fixed as of 2a9c656223b6ee4943bfbffd718254a69b9feb34, which'll be published sometime today. If anybody would like to test for us and confirm, please let me know your results :)

npm install -g stackgl/shader-school
sandovalfr commented 9 years ago

I've just successfully installed javascripting so I believe my Mac env to be good. Attempts to install shader-school and stackgl/shader-school fail.

How do I attach npm-debug.log?

Here is console output:

Last login: Thu May 7 15:36:50 on ttys000 PATAPL-P7KYG5RA:~ fsando200$ npm install -g stackgl/shader-school npm WARN deprecated rework-inline@0.2.0: deprecated in favor of rework-import

fsevents@0.2.1 install /Users/fsando200/npm_global/lib/node_modules/shader-school/node_modules/glslify-live/node_modules/chokidar/node_modules/fsevents node-gyp rebuild

CXX(target) Release/obj.target/fse/fsevents.o In file included from ../fsevents.cc:6: ../node_modules/nan/nan.h:339:13: error: no member named 'New' in 'v8::String' return _NAN_ERROR(v8::Exception::Error, errmsg); ^~~~~~~~~~~~ ../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                 ~~~~~~~~~~~~^

../node_modules/nan/nan.h:343:5: error: no member named 'ThrowException' in namespace 'v8' _NAN_THROW_ERROR(v8::Exception::Error, errmsg); ^~~~~~~~~~ ../node_modules/nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR' v8::ThrowException(_NAN_ERROR(fun, errmsg)); \


../node_modules/nan/nan.h:343:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::Error, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'

# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

../node_modules/nan/nan.h:348:9: error: no type named 'ThrowException' in namespace 'v8'
    v8::ThrowException(error);
    ~~~~^
../node_modules/nan/nan.h:355:65: error: no member named 'New' in 'v8::String'
    v8::Localv8::Value err = v8::Exception::Error(v8::String::New(msg));
                                                    ~~~~~~~~~~~~^
../node_modules/nan/nan.h:357:26: error: no member named 'New' in 'v8::String'
    obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
             ~~~~~~~~~~~~^
../node_modules/nan/nan.h:357:65: error: too few arguments to function call, expected 2, have 1
    obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
                                      ~~~~~~~~~~~~~~            ^
/Users/fsando200/.node-gyp/0.12.2/deps/v8/include/v8.h:2012:3: note: 'New' declared here
  static Local<Integer> New(Isolate\* isolate, int32_t value);
  ^
In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:369:12: error: no member named 'New' in 'v8::String'
    return _NAN_ERROR(v8::Exception::TypeError, errmsg);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'

# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

../node_modules/nan/nan.h:373:5: error: no member named 'ThrowException' in namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
../node_modules/nan/nan.h:373:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'

# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

../node_modules/nan/nan.h:377:12: error: no member named 'New' in 'v8::String'
    return _NAN_ERROR(v8::Exception::RangeError, errmsg);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'

# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

../node_modules/nan/nan.h:381:5: error: no member named 'ThrowException' in namespace 'v8'
    _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
      ~~~~^
../node_modules/nan/nan.h:381:5: error: no member named 'New' in 'v8::String'
    _NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR'
      v8::ThrowException(_NAN_ERROR(fun, errmsg));                             \
                         ^~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'

# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

```
                                 ~~~~~~~~~~~~^
```

../node_modules/nan/nan.h:727:49: error: too few arguments to function call, single argument 'isolate' was not specified
    v8::Localv8::Object obj = v8::Object::New();
                                ~~~~~~~~~~~~~~~ ^
/Users/fsando200/.node-gyp/0.12.2/deps/v8/include/v8.h:2388:3: note: 'New' declared here
  static Local<Object> New(Isolate\* isolate);
  ^
In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:733:49: error: too few arguments to function call, single argument 'isolate' was not specified
    v8::Localv8::Object obj = v8::Object::New();
                                ~~~~~~~~~~~~~~~ ^
/Users/fsando200/.node-gyp/0.12.2/deps/v8/include/v8.h:2388:3: note: 'New' declared here
  static Local<Object> New(Isolate\* isolate);
  ^
In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:740:12: error: no member named 'Dispose' in 'v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    handle.Dispose();
    ~~~~~~ ^
../node_modules/nan/nan.h:741:12: error: no member named 'Clear' in 'v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
    handle.Clear();
    ~~~~~~ ^
../node_modules/nan/nan.h:746:39: error: no member named 'NewSymbol' in 'v8::String'; did you mean 'IsSymbol'?
    NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn);
                                      ^~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:181:38: note: expanded from macro 'NanSymbol'
#define NanSymbol(value) v8::String::NewSymbol(value)
                         ~~~~~~~~~~~~^
/Users/fsando200/.node-gyp/0.12.2/deps/v8/include/v8.h:1379:8: note: 'IsSymbol' declared here
  bool IsSymbol() const;
       ^
In file included from ../fsevents.cc:6:
../node_modules/nan/nan.h:746:39: error: call to non-static member function without an object argument
    NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn);
                                      ^~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:181:38: note: expanded from macro 'NanSymbol'
#define NanSymbol(value) v8::String::NewSymbol(value)
                         ~~~~~~~~~~~~^~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: **\* [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/fsando200/npm_global/lib/node_modules/shader-school/node_modules/glslify-live/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 
npm WARN optional dep failed, continuing fsevents@0.2.1

> fsevents@0.3.6 install /Users/fsando200/npm_global/lib/node_modules/shader-school/node_modules/beefy/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

  SOLINK_MODULE(target) Release/.node
  SOLINK_MODULE(target) Release/.node: Finished
  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  SOLINK_MODULE(target) Release/fse.node: Finished
/

> canvas@1.2.2 install /Users/fsando200/npm_global/lib/node_modules/shader-school/node_modules/gl-axes/node_modules/vectorize-text/node_modules/canvas-browserify/node_modules/canvas
> node-gyp rebuild

./util/has_cairo_freetype.sh: line 4: pkg-config: command not found
gyp: Call to './util/has_cairo_freetype.sh' returned exit status 0. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/fsando200/npm_global/lib/node_modules/shader-school/node_modules/gl-axes/node_modules/vectorize-text/node_modules/canvas-browserify/node_modules/canvas
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 
npm WARN optional dep failed, continuing canvas@1.2.2
npm WARN engine pngjs@0.4.0: wanted: {"node":"0.8.x"} (current: {"node":"0.12.2","npm":"2.7.4"})
|

> stanford-dragon@1.1.1 postinstall /Users/fsando200/npm_global/lib/node_modules/shader-school/node_modules/stanford-dragon
> npm run build
> 
> stanford-dragon@1.1.1 build /Users/fsando200/npm_global/lib/node_modules/shader-school/node_modules/stanford-dragon
> npm run res1 && npm run res2 && npm run res3 && npm run res4
> 
> stanford-dragon@1.1.1 res1 /Users/fsando200/npm_global/lib/node_modules/shader-school/node_modules/stanford-dragon
> node lib/build.js models/dragon_vrip.ply.gz 1.js

parsing ply file
unpacking positions
generating module
writing module

> stanford-dragon@1.1.1 res2 /Users/fsando200/npm_global/lib/node_modules/shader-school/node_modules/stanford-dragon
> node lib/build.js models/dragon_vrip_res2.ply.gz 2.js

parsing ply file
unpacking positions
generating module
writing module

> stanford-dragon@1.1.1 res3 /Users/fsando200/npm_global/lib/node_modules/shader-school/node_modules/stanford-dragon
> node lib/build.js models/dragon_vrip_res3.ply.gz 3.js

parsing ply file
unpacking positions
generating module
writing module

> stanford-dragon@1.1.1 res4 /Users/fsando200/npm_global/lib/node_modules/shader-school/node_modules/stanford-dragon
> node lib/build.js models/dragon_vrip_res4.ply.gz 4.js

parsing ply file
unpacking positions
generating module
writing module
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "stackgl/shader-school"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! code ETARGET

npm ERR! notarget No compatible version found: JSONStream@'>=1.0.3 <2.0.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.0.0","0.1.0","0.1.1","0.1.2","0.1.3","0.2.0","0.2.1","0.2.2","0.2.3","0.3.0","0.3.1","0.3.2","0.3.3","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.7.0","0.7.1","0.8.0","0.7.2","0.7.3","0.7.4","0.8.1","0.8.2","0.8.3","0.8.4","0.9.0","0.10.0"]
npm ERR! notarget 
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget 
npm ERR! notarget It was specified as a dependency of 'deps-sort'
npm ERR! notarget 

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/fsando200/npm-debug.log
PATAPL-P7KYG5RA:~ fsando200$ 
dy-dx commented 9 years ago

@sandovalfr What version of node are you using? node --version in terminal

sandovalfr commented 9 years ago

v0.12.2. Installed just a few weeks ago so assuming its recent

On May 10, 2015, at 5:15 PM, Chris Kim notifications@github.com wrote:

@sandovalfr https://github.com/sandovalfr What version of node are you using? node --version in terminal

— Reply to this email directly or view it on GitHub https://github.com/stackgl/shader-school/issues/95#issuecomment-100714568.

hedgerworkco commented 9 years ago

I am not able to install on OSX 10.10.2. node version is v0.12.2. i've never had any kind of install issues with npm prior. here are my errors before I cancelled out of the installation: https://gist.github.com/hedgerworkco/ceaf5336dc5ff189961b

dy-dx commented 9 years ago

@hedgerworkco That's an optional dependency, it should still work despite those warnings. Can you try installing again and letting it run past the warnings?

hedgerworkco commented 9 years ago

@dy-dx Ahh. For some reason, the CLI wasn't available the first time I tried. Not sure what I did wrong. Yeah, the optional dependency fails, but the rest installs fine. Thanks!

memoryonrepeat commented 9 years ago

Hi, I got a similar error with 'cairo' package

Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
gyp: Call to './util/has_cairo_freetype.sh' returned exit status 0. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/shader-school/node_modules/gl-axes/node_modules/vectorize-text/node_modules/canvas-browserify/node_modules/canvas
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok 
npm WARN optional dep failed, continuing canvas@1.2.3

Installed using npm 2.11.3, node 0.10.35 on OS X Yosemite 10.10.3 . Any idea how to resolve this ? Thanks.

dy-dx commented 9 years ago

@tienthanh8490 That package is optional, so shader-school should stil work.

SuperstrongBE commented 7 years ago

Hi not able to install shader-school

got this error

`npm WARN deprecated rework-inline@0.2.0: deprecated in favor of rework-import npm WARN engine pngjs@0.4.0: wanted: {"node":"0.8.x"} (current: {"node":"5.0.0","npm":"3.3.6"}) npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated find-file@0.1.4: Use the globby package instead npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue /Users/Rockerz/.nvm/versions/node/v5.0.0/bin/shader-school -> /Users/Rockerz/.nvm/versions/node/v5.0.0/lib/node_modules/shader-school/index.js

canvas@1.6.2 install /Users/Rockerz/.nvm/versions/node/v5.0.0/lib/node_modules/shader-school/node_modules/canvas node-gyp rebuild

Package xcb-shm was not found in the pkg-config search path. Perhaps you should add the directory containing xcb-shm.pc' to the PKG_CONFIG_PATH environment variable Package 'xcb-shm', required by 'cairo', not found gyp: Call to './util/has_lib.sh freetype' returned exit status 0. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/Users/Rockerz/.nvm/versions/node/v5.0.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:355:16) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Darwin 16.1.0 gyp ERR! command "/Users/Rockerz/.nvm/versions/node/v5.0.0/bin/node" "/Users/Rockerz/.nvm/versions/node/v5.0.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/Rockerz/.nvm/versions/node/v5.0.0/lib/node_modules/shader-school/node_modules/canvas gyp ERR! node -v v5.0.0 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok /Users/Rockerz/.nvm/versions/node/v5.0.0/lib └── (empty)

npm ERR! Darwin 16.1.0 npm ERR! argv "/Users/Rockerz/.nvm/versions/node/v5.0.0/bin/node" "/Users/Rockerz/.nvm/versions/node/v5.0.0/bin/npm" "install" "-g" "shader-school" npm ERR! node v5.0.0 npm ERR! npm v3.3.6 npm ERR! code ELIFECYCLE

npm ERR! canvas@1.6.2 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the canvas@1.6.2 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the canvas package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls canvas npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /Users/Rockerz/npm-debug.log npm ERR! code 1`