Skip to content

Build instructions in README do not work #58

@taliesinb

Description

@taliesinb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions