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

Documentation incorrect - Post install script should be "npm run build-assets" #15

Open
afisher88 opened this issue Mar 13, 2018 · 0 comments

Comments

@afisher88
Copy link

afisher88 commented Mar 13, 2018

item info notes
node version 8.10.0
npm version 5.6.0
mozaik-demo version V1
browser Chrome 64.0.3282.186
OS Windows 10 Pro

Expected behavior

Running npm install and then node app.js should start the application.

Actual behavior

> if $BUILD_ASSETS; then npm run build-assets; fi

then was unexpected at this time.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mozaik-dashboard@ postinstall: `if $BUILD_ASSETS; then npm run build-assets; fi`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mozaik-dashboard@ postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

According to the docs, you can manually run the npm run build script after installing if it fails. However, this throws an error that the script is not found.

Running npm run build-assets works and fixes the problem. The docs should be updated to reflect this.

Steps to reproduce

Run npm install
Run node app.js

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

1 participant