plouc / mozaik-website

Mozaïk website sources
http://mozaik.rocks
2 stars 5 forks source link

error on getting started #6

Open itzik-ilan opened 7 years ago

itzik-ilan commented 7 years ago

Hi there

I was asked to create some POC using your tool. I fallowed the "Getting started" page http://mozaik.rocks/v1/use/ couldn't run npm run build / node app.js

can you help me with this?

this is the log: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'install' ] 2 info using npm@4.1.1 3 info using node@v4.4.1 4 silly loadCurrentTree Starting 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 silly install normalizeTree 8 silly loadCurrentTree Finishing 9 silly loadIdealTree Starting 10 silly install loadIdealTree 11 silly cloneCurrentTree Starting 12 silly install cloneCurrentTreeToIdealTree ... ... 89 silly lifecycle mozaik-dashboard@~postinstall: Returned: code: 1 signal: null 90 info lifecycle mozaik-dashboard@~postinstall: Failed to exec postinstall script 91 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): 92 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) 93 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin 93 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any 93 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: win32 93 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64 94 verbose stack Error: mozaik-dashboard@ postinstall: if $BUILD_ASSETS; then npm run build-assets; fi 94 verbose stack Exit status 1 94 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:279:16) 94 verbose stack at emitTwo (events.js:87:13) 94 verbose stack at EventEmitter.emit (events.js:172:7) 94 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14) 94 verbose stack at emitTwo (events.js:87:13) 94 verbose stack at ChildProcess.emit (events.js:172:7) 94 verbose stack at maybeClose (internal/child_process.js:827:16) 94 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) 95 verbose pkgid mozaik-dashboard@ 96 verbose cwd C:\Users\itzik.ilan\mozaik-demo 97 error Windows_NT 10.0.14393 98 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" 99 error node v4.4.1 100 error npm v4.1.1 101 error code ELIFECYCLE 102 error mozaik-dashboard@ postinstall: if $BUILD_ASSETS; then npm run build-assets; fi 102 error Exit status 1 103 error Failed at the mozaik-dashboard@ postinstall script 'if $BUILD_ASSETS; then npm run build-assets; fi'. 103 error Make sure you have the latest version of node.js and npm installed. 103 error If you do, this is most likely a problem with the mozaik-dashboard package, 103 error not with npm itself. 103 error Tell the author that this fails on your system: 103 error if $BUILD_ASSETS; then npm run build-assets; fi 103 error You can get information on how to open an issue for this project with: 103 error npm bugs mozaik-dashboard 103 error Or if that isn't available, you can get their info via: 103 error npm owner ls mozaik-dashboard 103 error There is likely additional logging output above. 104 verbose exit [ 1, true ]

plouc commented 7 years ago

The problem is due to the condition inside the npm script if $BUILD_ASSETS; then npm run build-assets; fi on windows, just run npm run build and start mozaïk.

However you should use Mozaïk with Node v6.

Chas20022002 commented 6 years ago

npm run build is throwing errors as well.