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

Build instructions in README do not work #58

Open
taliesinb opened this issue Jan 24, 2020 · 1 comment
Open

Build instructions in README do not work #58

taliesinb opened this issue Jan 24, 2020 · 1 comment

Comments

@taliesinb
Copy link

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

$ npm run build
npm run deploy

> [email protected] 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! [email protected] build: `webpack`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] 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
Copy link
Contributor

grtlr commented Nov 6, 2020

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

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

2 participants