dataarts / dat.gui

Lightweight controller library for JavaScript.
Apache License 2.0
7.46k stars 1.08k forks source link

Unable to build using README instructions #314

Closed markbaumgarten closed 2 years ago

markbaumgarten commented 2 years ago

I am trying to make my own modifications...but...

When i run the build command i get this error. Very much noob at node and npm....


 ✘ mba@mba-ThinkPad-T450s  ~/dat.gui   master ±  npm run build                                                                                                        kubernetes-admin@cluster.local

> dat.gui@0.7.9 build
> rollup -c && rollup -c rollup.config.min.js

[!] Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (93)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.13.1
Error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (93)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.13.1
    at module.exports (/home/mba/dat.gui/node_modules/node-sass/lib/binding.js:13:13)
    at Object.<anonymous> (/home/mba/dat.gui/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Object.require.extensions..js (/home/mba/dat.gui/node_modules/rollup/bin/rollup:20395:17)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/mba/dat.gui/node_modules/rollup-plugin-sass/dist/rollup-plugin-sass.js:11:16)

I also tried this one:

npm rebuild node-sass with no luck and a lot of output(attached)...

Any suggestions?

Thanks in advance...

2022-03-20T15_25_16_492Z-debug-0.log .

markbaumgarten commented 2 years ago

Apparently i needed to downgrade to node version 13. The following few commands was the fix:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
source ~/.zshrc
nvm install 13
nvm use 13
npm rebuild node-sass
npm install
npm run build

So if node v13 is a prerequisite - perhaps add this to the README ?