distillpub / post--visual-exploration-gaussian-processes

A Visual Exploration of Gaussian Processes
http://distill.pub/2019/visual-exploration-gaussian-processes
100 stars 19 forks source link

Build instructions in README do not work #58

Open taliesinb opened 4 years ago

taliesinb commented 4 years ago

I can't build using the README instructions, at least on macOS Catalina:

$ npm run build
npm run deploy

> gau@1.0.0 build /Users/taliesinb/git/distillpub/post--visual-exploration-gaussian-processes
> webpack

sh: webpack: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! gau@1.0.0 build: `webpack`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the gau@1.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/taliesinb/.npm/_logs/2020-01-24T18_34_54_003Z-debug.log
npm ERR! missing script: deploy

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/taliesinb/.npm/_logs/2020-01-24T18_34_54_274Z-debug.log

The solution seems to be npm install webpack. It's quite scary, though, because on Catalina it turns out that webpack dependency fsevents (presumably for live-reloading) doesn't have binaries available, and attempts to build fsevent from source fail with reams of horrible C++ errors (seems like something in Node changed recently). But fsevents is optional.

There is another problem, however, which seems more serious:

$ npm run deploy

npm ERR! missing script: deploy

Here are the available scripts:

➜  post--visual-exploration-gaussian-processes git:(master) ✗ npm rum
Lifecycle scripts included in gau:
  test
    echo "Error: no test specified" && exit 1

available via `npm run-script`:
  build
    webpack
  serve
    webpack-serve --config ./webpack.config.js
  lint-fix
    eslint --config .eslintrc.json --fix --ext .js,.html src
grtlr commented 3 years ago

You have probably worked it out by now — if not, did you run npm install before you ran npm run build?