Skip to content

Unable to run npm run build on Ubuntu 17.10 #8

@JasoonS

Description

@JasoonS

Hi

I'm getting the following error when I run: npm run build, npm run build:web or npm run build:native:

✗ npm run build                 

> reprocessing-example@ build /home/jasoon/Documents/adhara/test/reprocessing-example
> bsb -make-world

ninja: no work to do.
[1/1] Building run_build_script
FAILED: run_build_script 
/home/jasoon/Documents/adhara/test/reprocessing-example/node_modules/Tsdl/lib/bs/bytecode/build_script.exe /home/jasoon/Documents/adhara/test/reprocessing-example/node_modules/bs-platform/vendor /home/jasoon/Documents/adhara/test/reprocessing-example/node_modules/bs-platform/vendor/ocaml/lib/ocaml /home/jasoon/Documents/adhara/test/reprocessing-example/node_modules/Tsdl /home/jasoon/Documents/adhara/test/reprocessing-example
Fatal error: cannot load shared library dllunix
Reason: /usr/lib/ocaml/stublibs/dllunix.so: undefined symbol: caml_string_is_c_safe
ninja: error: rebuilding 'build.ninja': subcommand failed
Failure: /home/jasoon/Documents/adhara/test/reprocessing-example/node_modules/bs-platform/lib/ninja.exe 
 Location: /home/jasoon/Documents/adhara/test/reprocessing-example/node_modules/Tsdl/lib/bs/bytecode
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! reprocessing-example@ build: `bsb -make-world`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the reprocessing-example@ build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jasoon/.npm/_logs/2018-04-24T20_19_38_157Z-debug.log

The same thing happened when I ran this command on this repo https://github.com/ekosz/reprocessing-example-flow-field (well after I capitalised Reprocessing in the bsconfig.json).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions