-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Examples do not run from a fresh repo clone when following documented steps #2024
Comments
Sorry, the instructions are wrong 🙈 they were copied from a different example but the node-xhr one doesn't have a build script, only Some of the examples are a bit broken after a change to our build setup a few months ago. I'll push a fix and update the instructions. Thanks for filing this issue! |
This isn't ideal but for now, it works if you go into the repository root, and run this from there: npm run example "example-name"
# eg. npm run example node-xhr ideally the examples would be fully standalone, so hopefully we'll have time to address that in the future—this workaround should do the trick in the mean time though. |
Thank you!
…On Wed, Jan 15, 2020 at 6:20 PM Renée Kooi ***@***.***> wrote:
This isn't ideal but for now, it works if you go into the *repository
root*, and do
npm run example "example-name"
# eg. npm run example node-xhr
ideally the examples would be fully standalone, so hopefully we'll have
time to address that in the future—this workaround should do the trick in
the mean time though.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2024?email_source=notifications&email_token=ABQ7CZ6E6RQ4IM6WFCNKT43Q53PP3A5CNFSM4KGOZDC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI7ZWIY#issuecomment-574593827>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQ7CZY4RB7SZY5S2J3UUFLQ53PP3ANCNFSM4KGOZDCQ>
.
--
|
If I do that then I see this error below. Here is a video showing the issue: 0 info it worked if it ends with ok |
did you do `npm install` in the root directory of the repository first?
|
Yes. Thank you. I really appreciate your help.
I recorded the steps here: https://youtu.be/cuVWq-fxOiM
1: git clone https://github.com/transloadit/uppy.git
2: cd uppy
3: npm install
4: npm run example node-xhr
Error:
@uppy-example/node-xhr@ start /home/warrenkc/Documents/uppy jan 19 2020/uppy/examples/node-xhr
npm-run-all --serial copy --parallel start:*
@uppy-example/node-xhr@ copy /home/warrenkc/Documents/uppy jan 19 2020/uppy/examples/node-xhr
cp ../../packages/uppy/dist/uppy.min.css .
cp: cannot stat '../../packages/uppy/dist/uppy.min.css': No such file or directory
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @uppy-example/node-xhr@ copy: `cp ../../packages/uppy/dist/uppy.min.css .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @uppy-example/node-xhr@ copy 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! /home/warrenkc/.npm/_logs/2020-01-19T04_26_59_030Z-debug.log
ERROR: "copy" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @uppy-example/node-xhr@ start: `npm-run-all --serial copy --parallel start:*`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @uppy-example/node-xhr@ start 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! /home/warrenkc/.npm/_logs/2020-01-19T04_26_59_039Z-debug.log
child_process.js:660
throw err;
^
Error: Command failed: npm start
at checkExecSyncError (child_process.js:621:11)
at execSync (child_process.js:657:15)
at Object.<anonymous> (/home/warrenkc/Documents/uppy jan 19 2020/uppy/bin/run-example.js:29:1)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)
at internal/main/run_main_module.js:17:11 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 4142,
stdout: null,
stderr: null
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! uppy-build@0.0.0 example: `node bin/run-example "node-xhr"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the uppy-build@0.0.0 example 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/warrenkc/.npm/_logs/2020-01-19T04_26_59_060Z-debug.log
|
Ah. so you also have to do |
Thank you. I really appreciate it. |
I am in Ubuntu trying to get the example to work for: https://github.com/transloadit/uppy/tree/master/examples/node-xhr
When I run npm run build I get an error. I recorded the steps so you can see in a video:
https://www.youtube.com/watch?v=tmdBcNxR9Fg&feature=youtu.be
Thank you!
The text was updated successfully, but these errors were encountered: