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

npm run and dist not working #667

Closed
makehappen2017 opened this issue Nov 9, 2017 · 15 comments
Closed

npm run and dist not working #667

makehappen2017 opened this issue Nov 9, 2017 · 15 comments

Comments

@makehappen2017
Copy link

C:\Program Files\Git\readium-js-viewer>npm run build

readium-js-viewer@0.29.0-alpha prebuild C:\Program Files\Git\readium-js-viewer
npm run clean

readium-js-viewer@0.29.0-alpha clean C:\Program Files\Git\readium-js-viewer
(yarn --version || echo noyarn) && node --version && npm --version && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/rimraf/bin.js build-output && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/rimraf/bin.js api-docs/* && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/rimraf/bin.js dist

1.3.2
v8.9.0
5.5.1

readium-js-viewer@0.29.0-alpha build C:\Program Files\Git\readium-js-viewer
npm run build:scripts

readium-js-viewer@0.29.0-alpha prebuild:scripts C:\Program Files\Git\readium-js-viewer
npm run genPluginsConfig

readium-js-viewer@0.29.0-alpha genPluginsConfig C:\Program Files\Git\readium-js-viewer
cd readium-js/readium-shared-js/ && node readium-cfi-js/readium-build-tools/pluginsConfigMaker.js && cd ../..

========>
========> Plugins bootstrap ...
========>
process.env.npm_package_config_RJS_PLUGINS_OVERRIDE:
undefined
process.env[RJS_PLUGINS_OVERRIDE]:
undefined
Default plugins: []
No plugin entries to override.
Plugins to load: []
Generated plugin config files:
C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js\build-config\RequireJS_config_plugins.js
C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js\build-config\RequireJS_config_plugins_multiple-bundles.js
C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js\build-config\RequireJS_config_plugins_single-bundle.js
========> End of plugins bootstrap.

readium-js-viewer@0.29.0-alpha build:scripts C:\Program Files\Git\readium-js-viewer
npm run versioning && npm run build:scripts:multiple && npm run build:scripts:single && npm run build:scripts:single:LITE && npm run build:scripts:single:CHROMEAPP --readium-js-viewer:RJS_UGLY=no && npm run build:scripts:single:CHROMEAPPWORKER --readium-js-viewer:RJS_UGLY=no

readium-js-viewer@0.29.0-alpha preversioning C:\Program Files\Git\readium-js-viewer
node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/mkdirp/bin/cmd.js build-output

readium-js-viewer@0.29.0-alpha versioning C:\Program Files\Git\readium-js-viewer
node build-config/versioning.js build-output/version.json

versionsMaker.js arguments:
[ 'build-output/version.json' ]
C:\Program Files\Git\readium-js-viewer

Versioning: C:\Program Files\Git\readium-js-viewer
Version: 0.29.0-alpha
Chrome version: 2.29.0-alpha
SHA: 8bc5c6f
Clean: false
Tag: 0.29.0-alpha-0-g8bc5c6f
Branch: develop

Versioning: C:\Program Files\Git\readium-js-viewer\readium-js
Version: 0.29.0-alpha
SHA: 9cd2fa48854694025487cd4630a6e1a8b8e1851f
Clean: false
Tag: 0.28.0-1-g9cd2fa4
...
Branch: develop

Versioning: C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js
Version: 0.29.0-alpha
SHA: 60463c27e4417102f47df9c51e9953b2b467def2
Clean: false
Tag: 0.28.0-1-g60463c2
...
Branch: develop

Versioning: C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js\readium-cfi-js
Version: 0.29.0-alpha
SHA: c40864fe5122a16fb5330824365f8f5b481adca2
Clean: false
Tag: 0.28.0-1-gc40864f
...
Branch: develop

readium-js-viewer@0.29.0-alpha prebuild:scripts:multiple C:\Program Files\Git\readium-js-viewer
node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/mkdirp/bin/cmd.js build-output/XXX && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/ncp/bin/ncp src/templates/ build-output/XXX/templates/ && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/ncp/bin/ncp src/i18n/ build-output/XXX/i18n/ && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/cpy-cli/cli.js build-output/version.json build-output/XXX/

readium-js-viewer@0.29.0-alpha build:scripts:multiple C:\Program Files\Git\readium-js-viewer
node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/requirejs/bin/r.js -o ./readium-js/readium-shared-js/readium-cfi-js/readium-build-tools/RequireJS_config.js --rjs_bundle=multiple

========>
========> RJS bootstrap ...
========>
C:\Program Files\Git\readium-js-viewer
[ './readium-js/readium-shared-js/readium-cfi-js/readium-build-tools/RequireJS_config.js',
'--rjs_bundle=multiple' ]
readium-js/readium-shared-js/readium-cfi-js/readium-build-tools
process.env.npm_package_config_RJS_UGLY:
undefined
process.env[RJS_UGLY]:
undefined
multiple
Plugins config:
C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js\build-config\RequireJS_config_plugins.js
../../build-config/RequireJS_config_plugins.js
Plugins bundle config:
../../build-config/RequireJS_config_plugins_multiple-bundles.js
[ '../build-config/RequireJS_config_common.js',
'../build-config/RequireJS_config_multiple-bundles.js',
'../../build-config/RequireJS_config_plugins.js',
'../../build-config/RequireJS_config_plugins_multiple-bundles.js',
'../../build-config/RequireJS_config_common.js',
'../../build-config/RequireJS_config_multiple-bundles.js',
'../../../build-config/RequireJS_config_common.js',
'../../../build-config/RequireJS_config_multiple-bundles.js',
'../../../../build-config/RequireJS_config_multiple-bundles_external-libs.js',
'../../../../build-config/RequireJS_config_common.js',
'../../../../build-config/RequireJS_config_multiple-bundles.js' ]
Error: Error: ENOENT: no such file or directory, open 'C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js\node_modules\urijs\src\URI.js'
at Object.fs.openSync (fs.js:646:18)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! readium-js-viewer@0.29.0-alpha build:scripts:multiple: node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/requirejs/bin/r.js -o ./readium-js/readium-shared-js/readium-cfi-js/readium-build-tools/RequireJS_config.js --rjs_bundle=multiple
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the readium-js-viewer@0.29.0-alpha build:scripts:multiple 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! C:\Users\Mary\AppData\Roaming\npm-cache_logs\2017-11-09T07_59_41_709Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! readium-js-viewer@0.29.0-alpha build:scripts: npm run versioning && npm run build:scripts:multiple && npm run build:scripts:single && npm run build:scripts:single:LITE && npm run build:scripts:single:CHROMEAPP --readium-js-viewer:RJS_UGLY=no && npm run build:scripts:single:CHROMEAPPWORKER --readium-js-viewer:RJS_UGLY=no
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the readium-js-viewer@0.29.0-alpha build:scripts 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! C:\Users\Mary\AppData\Roaming\npm-cache_logs\2017-11-09T07_59_41_813Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! readium-js-viewer@0.29.0-alpha build: npm run build:scripts
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the readium-js-viewer@0.29.0-alpha 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! C:\Users\Mary\AppData\Roaming\npm-cache_logs\2017-11-09T07_59_41_898Z-debug.log

C:\Program Files\Git\readium-js-viewer>npm run dist

readium-js-viewer@0.29.0-alpha predist C:\Program Files\Git\readium-js-viewer
npm run build && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/mkdirp/bin/cmd.js dist

readium-js-viewer@0.29.0-alpha prebuild C:\Program Files\Git\readium-js-viewer
npm run clean

readium-js-viewer@0.29.0-alpha clean C:\Program Files\Git\readium-js-viewer
(yarn --version || echo noyarn) && node --version && npm --version && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/rimraf/bin.js build-output && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/rimraf/bin.js api-docs/* && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/rimraf/bin.js dist

1.3.2
v8.9.0
5.5.1

readium-js-viewer@0.29.0-alpha build C:\Program Files\Git\readium-js-viewer
npm run build:scripts

readium-js-viewer@0.29.0-alpha prebuild:scripts C:\Program Files\Git\readium-js-viewer
npm run genPluginsConfig

readium-js-viewer@0.29.0-alpha genPluginsConfig C:\Program Files\Git\readium-js-viewer
cd readium-js/readium-shared-js/ && node readium-cfi-js/readium-build-tools/pluginsConfigMaker.js && cd ../..

========>
========> Plugins bootstrap ...
========>
process.env.npm_package_config_RJS_PLUGINS_OVERRIDE:
undefined
process.env[RJS_PLUGINS_OVERRIDE]:
undefined
Default plugins: []
No plugin entries to override.
Plugins to load: []
Generated plugin config files:
C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js\build-config\RequireJS_config_plugins.js
C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js\build-config\RequireJS_config_plugins_multiple-bundles.js
C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js\build-config\RequireJS_config_plugins_single-bundle.js
========> End of plugins bootstrap.

readium-js-viewer@0.29.0-alpha build:scripts C:\Program Files\Git\readium-js-viewer
npm run versioning && npm run build:scripts:multiple && npm run build:scripts:single && npm run build:scripts:single:LITE && npm run build:scripts:single:CHROMEAPP --readium-js-viewer:RJS_UGLY=no && npm run build:scripts:single:CHROMEAPPWORKER --readium-js-viewer:RJS_UGLY=no

readium-js-viewer@0.29.0-alpha preversioning C:\Program Files\Git\readium-js-viewer
node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/mkdirp/bin/cmd.js build-output

readium-js-viewer@0.29.0-alpha versioning C:\Program Files\Git\readium-js-viewer
node build-config/versioning.js build-output/version.json

versionsMaker.js arguments:
[ 'build-output/version.json' ]
C:\Program Files\Git\readium-js-viewer

Versioning: C:\Program Files\Git\readium-js-viewer
Version: 0.29.0-alpha
Chrome version: 2.29.0-alpha
SHA: 8bc5c6f
Clean: false
Tag: 0.29.0-alpha-0-g8bc5c6f
Branch: develop

Versioning: C:\Program Files\Git\readium-js-viewer\readium-js
Version: 0.29.0-alpha
SHA: 9cd2fa48854694025487cd4630a6e1a8b8e1851f
Clean: false
Tag: 0.28.0-1-g9cd2fa4
...
Branch: develop

Versioning: C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js
Version: 0.29.0-alpha
SHA: 60463c27e4417102f47df9c51e9953b2b467def2
Clean: false
Tag: 0.28.0-1-g60463c2
...
Branch: develop

Versioning: C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js\readium-cfi-js
Version: 0.29.0-alpha
SHA: c40864fe5122a16fb5330824365f8f5b481adca2
Clean: false
Tag: 0.28.0-1-gc40864f
...
Branch: develop

readium-js-viewer@0.29.0-alpha prebuild:scripts:multiple C:\Program Files\Git\readium-js-viewer
node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/mkdirp/bin/cmd.js build-output/XXX && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/ncp/bin/ncp src/templates/ build-output/XXX/templates/ && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/ncp/bin/ncp src/i18n/ build-output/XXX/i18n/ && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/cpy-cli/cli.js build-output/version.json build-output/XXX/

readium-js-viewer@0.29.0-alpha build:scripts:multiple C:\Program Files\Git\readium-js-viewer
node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/requirejs/bin/r.js -o ./readium-js/readium-shared-js/readium-cfi-js/readium-build-tools/RequireJS_config.js --rjs_bundle=multiple

========>
========> RJS bootstrap ...
========>
C:\Program Files\Git\readium-js-viewer
[ './readium-js/readium-shared-js/readium-cfi-js/readium-build-tools/RequireJS_config.js',
'--rjs_bundle=multiple' ]
readium-js/readium-shared-js/readium-cfi-js/readium-build-tools
process.env.npm_package_config_RJS_UGLY:
undefined
process.env[RJS_UGLY]:
undefined
multiple
Plugins config:
C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js\build-config\RequireJS_config_plugins.js
../../build-config/RequireJS_config_plugins.js
Plugins bundle config:
../../build-config/RequireJS_config_plugins_multiple-bundles.js
[ '../build-config/RequireJS_config_common.js',
'../build-config/RequireJS_config_multiple-bundles.js',
'../../build-config/RequireJS_config_plugins.js',
'../../build-config/RequireJS_config_plugins_multiple-bundles.js',
'../../build-config/RequireJS_config_common.js',
'../../build-config/RequireJS_config_multiple-bundles.js',
'../../../build-config/RequireJS_config_common.js',
'../../../build-config/RequireJS_config_multiple-bundles.js',
'../../../../build-config/RequireJS_config_multiple-bundles_external-libs.js',
'../../../../build-config/RequireJS_config_common.js',
'../../../../build-config/RequireJS_config_multiple-bundles.js' ]
Error: Error: ENOENT: no such file or directory, open 'C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js\node_modules\urijs\src\URI.js'
at Object.fs.openSync (fs.js:646:18)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! readium-js-viewer@0.29.0-alpha build:scripts:multiple: node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/requirejs/bin/r.js -o ./readium-js/readium-shared-js/readium-cfi-js/readium-build-tools/RequireJS_config.js --rjs_bundle=multiple
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the readium-js-viewer@0.29.0-alpha build:scripts:multiple 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! C:\Users\Mary\AppData\Roaming\npm-cache_logs\2017-11-09T08_03_08_353Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! readium-js-viewer@0.29.0-alpha build:scripts: npm run versioning && npm run build:scripts:multiple && npm run build:scripts:single && npm run build:scripts:single:LITE && npm run build:scripts:single:CHROMEAPP --readium-js-viewer:RJS_UGLY=no && npm run build:scripts:single:CHROMEAPPWORKER --readium-js-viewer:RJS_UGLY=no
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the readium-js-viewer@0.29.0-alpha build:scripts 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! C:\Users\Mary\AppData\Roaming\npm-cache_logs\2017-11-09T08_03_08_456Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! readium-js-viewer@0.29.0-alpha build: npm run build:scripts
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the readium-js-viewer@0.29.0-alpha 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! C:\Users\Mary\AppData\Roaming\npm-cache_logs\2017-11-09T08_03_08_553Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! readium-js-viewer@0.29.0-alpha predist: npm run build && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/mkdirp/bin/cmd.js dist
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the readium-js-viewer@0.29.0-alpha predist 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! C:\Users\Mary\AppData\Roaming\npm-cache_logs\2017-11-09T08_03_08_644Z-debug.log

here is the log file
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\Mary\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dist' ]
2 info using npm@5.5.1
3 info using node@v8.9.0
4 verbose run-script [ 'predist', 'dist', 'postdist' ]
5 info lifecycle readium-js-viewer@0.29.0-alphapredist: readium-js-viewer@0.29.0-alpha
6 verbose lifecycle readium-js-viewer@0.29.0-alpha
predist: unsafe-perm in lifecycle true
7 verbose lifecycle readium-js-viewer@0.29.0-alphapredist: PATH: C:\Users\Mary\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Program Files\Git\readium-js-viewer\node_modules.bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Program Files (x86)\Yarn\bin;C:\Users\Mary\AppData\Local\Microsoft\WindowsApps;C:\Users\Mary\AppData\Roaming\npm;C:\Users\Mary\AppData\Local\Yarn\bin
8 verbose lifecycle readium-js-viewer@0.29.0-alpha
predist: CWD: C:\Program Files\Git\readium-js-viewer
9 silly lifecycle readium-js-viewer@0.29.0-alphapredist: Args: [ '/d /s /c',
9 silly lifecycle 'npm run build && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/mkdirp/bin/cmd.js dist' ]
10 silly lifecycle readium-js-viewer@0.29.0-alpha
predist: Returned: code: 1 signal: null
11 info lifecycle readium-js-viewer@0.29.0-alpha~predist: Failed to exec predist script
12 verbose stack Error: readium-js-viewer@0.29.0-alpha predist: npm run build && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/mkdirp/bin/cmd.js dist
12 verbose stack Exit status 1
12 verbose stack at EventEmitter. (C:\Users\Mary\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:280:16)
12 verbose stack at emitTwo (events.js:126:13)
12 verbose stack at EventEmitter.emit (events.js:214:7)
12 verbose stack at ChildProcess. (C:\Users\Mary\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
12 verbose stack at emitTwo (events.js:126:13)
12 verbose stack at ChildProcess.emit (events.js:214:7)
12 verbose stack at maybeClose (internal/child_process.js:925:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
13 verbose pkgid readium-js-viewer@0.29.0-alpha
14 verbose cwd C:\Program Files\Git\readium-js-viewer
15 verbose Windows_NT 10.0.15063
16 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\Mary\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "dist"
17 verbose node v8.9.0
18 verbose npm v5.5.1
19 error code ELIFECYCLE
20 error errno 1
21 error readium-js-viewer@0.29.0-alpha predist: npm run build && node ./readium-js/readium-shared-js/readium-cfi-js/node_modules/mkdirp/bin/cmd.js dist
21 error Exit status 1
22 error Failed at the readium-js-viewer@0.29.0-alpha predist script.
22 error This is probably not a problem with npm. There is likely additional logging output above.
23 verbose exit [ 1, true ]

@danielweck
Copy link
Member

I see the error is Error: Error: ENOENT: no such file or directory, open 'C:\Program Files\Git\readium-js-viewer\readium-js\readium-shared-js\node_modules\urijs\src\URI.js'.

Did you invoke the npm run prepare:all command before npm run dist+sourcemap or npm run build?

@danielweck
Copy link
Member

I think there is a bug in how NPM processes package-lock.json when installing / updating node_modules packages. I myself have just experience a missing module (gift) and I got it to work by deleting the package-lock.json file and by invoking npm run prepare:all (or npm run prepare:local) again!
So, I am pushing a "fix" (I hope) in the develop branch, which consists in allowing NPM to update its package-lock.json and the package.json files (the latter is normally automatically generated from its CSON counterpart).

@danielweck
Copy link
Member

They key change is to allow NPM to save its updates in both package-lock.json and package.json (see diff links below). The (minor) tradeoff is that: as the properties in package.json get sorted alphabetically, this results in slight discrepancies with the CSON original package descriptor format. Not a big deal though.

c27f09a#diff-9a691af88bffacf9e91b851585c190ab

readium/readium-js@0298836#diff-37c48ffb09211bfc5e9eeb379fb2d554

readium/readium-shared-js@26d6eb1#diff-37c48ffb09211bfc5e9eeb379fb2d554

readium/readium-cfi-js@84b1542#diff-37c48ffb09211bfc5e9eeb379fb2d554

@danielweck
Copy link
Member

@makehappen2017 could you please git pull the latest changes in all ReadiumJS repositories (readium-js-viewer, readium-js, readium-shared-js, and readium-cfi-js), ideally: delete the node_modules folders as well. Then, invoke npm run prepare:all, and npm run dist+sourcemap. Let us know how it goes. I am closing this issue now, we can re-open it if the problem persists. The bug seems fixed at my end.

@makehappen2017
Copy link
Author

makehappen2017 commented Nov 10, 2017 via email

@makehappen2017
Copy link
Author

makehappen2017 commented Nov 12, 2017 via email

@makehappen2017
Copy link
Author

makehappen2017 commented Nov 12, 2017 via email

@makehappen2017
Copy link
Author

makehappen2017 commented Nov 12, 2017 via email

@danielweck
Copy link
Member

Hello, ready-made cloud / web reader distributions are available in the "releases" section on GitHub:
https://github.com/readium/readium-js-viewer/releases

Going back to your problem, I am guessing you are using MS-DOS?

npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted

Any chance you could install a better terminal (e.g. GitBash, GitShell), to ensure commands are executed properly? Suggestions:

https://git-for-windows.github.io

https://git-scm.com

https://desktop.github.com

etc.

@makehappen2017
Copy link
Author

makehappen2017 commented Nov 14, 2017 via email

@danielweck
Copy link
Member

This is an open-source project, free of charge. See BSD-3-clause license details:
https://github.com/readium/readium-js-viewer/blob/develop/license.txt

Regards, Daniel

@makehappen2017
Copy link
Author

makehappen2017 commented Nov 14, 2017 via email

@danielweck
Copy link
Member

You must run an HTTP server to use cloud-reader/index.html, even if you want to test locally. Otherwise, Javascript XmlHttpRequest / fetch calls will fail for file:// files.

@makehappen2017
Copy link
Author

makehappen2017 commented Nov 15, 2017 via email

@danielweck
Copy link
Member

I am sorry to hear that you are struggling with your Readium web / cloud reader deployment. Did you read the documentation?
https://github.com/readium/readium-js-viewer/blob/develop/README.md#cloud-reader-deployment
Let us know if this helps, or at which point you are stuck. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants