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

Not run in windows #57

Open
kaflanTech opened this issue Jan 5, 2017 · 19 comments
Open

Not run in windows #57

kaflanTech opened this issue Jan 5, 2017 · 19 comments

Comments

@kaflanTech
Copy link

Ho to run in node js in windows 10.
Node v 7.4 npm v4 ?
this is err massage

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   'run',
1 verbose cli   'prepare' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prepare' ]
5 info lifecycle [email protected]~prepare: [email protected]
6 verbose lifecycle [email protected]~prepare: unsafe-perm in lifecycle true
7 verbose lifecycle [email protected]~prepare: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\Katrusha Andrey\Documents\readium-cfi-js-master\readium-cfi-js-master\node_modules\.bin;C:\Program Files\Microsoft MPI\Bin\;C:\ProgramData\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Users\Katrusha Andrey\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\TortoiseHg\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Brackets\command;C:\OpenServer\modules\php\PHP-7-x64;C:\ProgramData\ComposerSetup\bin;C:\OpenServer\modules\php\PHP-7-x64;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\NVM\nvm;C:\Program Files\nodejs;C:\Users\Katrusha Andrey\AppData\Roaming\nvm;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Nodist\bin; C:\Users\Katrusha Andrey\AppData\;C:\Program Files\nodejs\;C:\Users\Katrusha Andrey\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files (x86)\Mercurial;C:\Users\Katrusha Andrey\AppData\Roaming\Composer\vendor\bin;C:\NVM\nvm;C:\Program Files\nodejs;C:\Users\Katrusha Andrey\AppData\Roaming\nvm; C:\Users\Katrusha Andrey\AppData\;C:\Users\Katrusha Andrey\AppData\Roaming\npm
8 verbose lifecycle [email protected]~prepare: CWD: C:\Users\Katrusha Andrey\Documents\readium-cfi-js-master\readium-cfi-js-master
9 silly lifecycle [email protected]~prepare: Args: [ '/d /s /c', 'npm run prepare:local' ]
10 silly lifecycle [email protected]~prepare: Returned: code: 1  signal: null
11 info lifecycle [email protected]~prepare: Failed to exec prepare script
12 verbose stack Error: [email protected] prepare: `npm run prepare:local`
12 verbose stack Exit status 1
12 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:279:16)
12 verbose stack     at emitTwo (events.js:106:13)
12 verbose stack     at EventEmitter.emit (events.js:191:7)
12 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
12 verbose stack     at emitTwo (events.js:106:13)
12 verbose stack     at ChildProcess.emit (events.js:191:7)
12 verbose stack     at maybeClose (internal/child_process.js:885:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
13 verbose pkgid [email protected]
14 verbose cwd C:\Users\Katrusha Andrey\Documents\readium-cfi-js-master\readium-cfi-js-master
15 error Windows_NT 10.0.14393
16 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "prepare"
17 error node v7.4.0
18 error npm  v4.0.5
19 error code ELIFECYCLE
20 error [email protected] prepare: `npm run prepare:local`
20 error Exit status 1
21 error Failed at the [email protected] prepare script 'npm run prepare:local'.
21 error Make sure you have the latest version of node.js and npm installed.
21 error If you do, this is most likely a problem with the readium-cfi-js package,
21 error not with npm itself.
21 error Tell the author that this fails on your system:
21 error     npm run prepare:local
21 error You can get information on how to open an issue for this project with:
21 error     npm bugs readium-cfi-js
21 error Or if that isn't available, you can get their info via:
21 error     npm owner ls readium-cfi-js
21 error There is likely additional logging output above.
22 verbose exit [ 1, true ]
@danielweck
Copy link
Member

danielweck commented Jan 5, 2017

Can you please install NodeJS v6.9.3 LTS which is officially "Recommended For Most Users"?
https://nodejs.org
(make sure to uninstall v7 before)

Do you execute the command npm run prepare from MS-DOS, or from GitBash? (the latter shell is better, and is installed automatically when using Git from https://git-scm.com/download/win )

@kaflanTech
Copy link
Author

ok I am try

@kaflanTech
Copy link
Author

Err what i doing wrong?

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   'run',
1 verbose cli   'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 verbose lifecycle [email protected]~prebuild: unsafe-perm in lifecycle true
7 verbose lifecycle [email protected]~prebuild: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\Katrusha Andrey\Documents\te4stREADER\readium-js-viewer\node_modules\.bin;C:\Program Files\Microsoft MPI\Bin\;C:\ProgramData\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Users\Katrusha Andrey\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\TortoiseHg\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Brackets\command;C:\OpenServer\modules\php\PHP-7-x64;C:\ProgramData\ComposerSetup\bin;C:\OpenServer\modules\php\PHP-7-x64;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\NVM\nvm;C:\Program Files\nodejs;C:\Users\Katrusha Andrey\AppData\Roaming\nvm;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Nodist\bin; C:\Users\Katrusha Andrey\AppData\;C:\Program Files\nodejs\;C:\Users\Katrusha Andrey\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files (x86)\Mercurial;C:\Users\Katrusha Andrey\AppData\Roaming\Composer\vendor\bin;C:\NVM\nvm;C:\Program Files\nodejs;C:\Users\Katrusha Andrey\AppData\Roaming\nvm; C:\Users\Katrusha Andrey\AppData\;C:\Users\Katrusha Andrey\AppData\Roaming\npm
8 verbose lifecycle [email protected]~prebuild: CWD: C:\Users\Katrusha Andrey\Documents\te4stREADER\readium-js-viewer
9 silly lifecycle [email protected]~prebuild: Args: [ '/d /s /c', 'npm run clean' ]
10 silly lifecycle [email protected]~prebuild: Returned: code: 0  signal: null
11 info lifecycle [email protected]~build: [email protected]
12 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
13 verbose lifecycle [email protected]~build: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\Katrusha Andrey\Documents\te4stREADER\readium-js-viewer\node_modules\.bin;C:\Program Files\Microsoft MPI\Bin\;C:\ProgramData\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Users\Katrusha Andrey\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\TortoiseHg\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Brackets\command;C:\OpenServer\modules\php\PHP-7-x64;C:\ProgramData\ComposerSetup\bin;C:\OpenServer\modules\php\PHP-7-x64;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\NVM\nvm;C:\Program Files\nodejs;C:\Users\Katrusha Andrey\AppData\Roaming\nvm;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Nodist\bin; C:\Users\Katrusha Andrey\AppData\;C:\Program Files\nodejs\;C:\Users\Katrusha Andrey\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files (x86)\Mercurial;C:\Users\Katrusha Andrey\AppData\Roaming\Composer\vendor\bin;C:\NVM\nvm;C:\Program Files\nodejs;C:\Users\Katrusha Andrey\AppData\Roaming\nvm; C:\Users\Katrusha Andrey\AppData\;C:\Users\Katrusha Andrey\AppData\Roaming\npm
14 verbose lifecycle [email protected]~build: CWD: C:\Users\Katrusha Andrey\Documents\te4stREADER\readium-js-viewer
15 silly lifecycle [email protected]~build: Args: [ '/d /s /c', 'npm run build:scripts' ]
16 silly lifecycle [email protected]~build: Returned: code: 1  signal: null
17 info lifecycle [email protected]~build: Failed to exec build script
18 verbose stack Error: [email protected] build: `npm run build:scripts`
18 verbose stack Exit status 1
18 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
18 verbose stack     at emitTwo (events.js:106:13)
18 verbose stack     at EventEmitter.emit (events.js:191:7)
18 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
18 verbose stack     at emitTwo (events.js:106:13)
18 verbose stack     at ChildProcess.emit (events.js:191:7)
18 verbose stack     at maybeClose (internal/child_process.js:877:16)
18 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
19 verbose pkgid [email protected]
20 verbose cwd C:\Users\Katrusha Andrey\Documents\te4stREADER\readium-js-viewer
21 error Windows_NT 10.0.14393
22 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
23 error node v6.9.3
24 error npm  v3.10.10
25 error code ELIFECYCLE
26 error [email protected] build: `npm run build:scripts`
26 error Exit status 1
27 error Failed at the [email protected] build script 'npm run build:scripts'.
27 error Make sure you have the latest version of node.js and npm installed.
27 error If you do, this is most likely a problem with the readium-cfi-js package,
27 error not with npm itself.
27 error Tell the author that this fails on your system:
27 error     npm run build:scripts
27 error You can get information on how to open an issue for this project with:
27 error     npm bugs readium-cfi-js
27 error Or if that isn't available, you can get their info via:
27 error     npm owner ls readium-cfi-js
27 error There is likely additional logging output above.
28 verbose exit [ 1, true ]

@kaflanTech
Copy link
Author

kaflanTech commented Jan 5, 2017

Do you execute the command npm run prepare from MS-DOS, or from GitBash? (the latter shell is better, and is installed automatically when using Git from https://git-scm.com/download/win )
Yes, I am use git bash

@danielweck
Copy link
Member

Can you please cd into the deep readium-cfi-js folder (last Git submodule in the chain), and invoke the npm run prepare command?
Also, please ensure that all your ReadiumJS Git repositories / submodules are in the correct branch, by executing git checkout master && git pull.

@kaflanTech
Copy link
Author

@danielweck
Yes, I am deep readium-cfi-js folder, and invoke npm run prepare. But npm log err.

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   'run',
1 verbose cli   'prepare' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prepare' ]
5 info lifecycle [email protected]~prepare: [email protected]
6 verbose lifecycle [email protected]~prepare: unsafe-perm in lifecycle true
7 verbose lifecycle [email protected]~prepare: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\Katrusha Andrey\Documents\te4stREADER\readium-js-viewer\node_modules\.bin;C:\Program Files\Microsoft MPI\Bin\;C:\ProgramData\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Windows\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\TortoiseHg\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Brackets\command;C:\OpenServer\modules\php\PHP-7-x64;C:\ProgramData\ComposerSetup\bin;C:\OpenServer\modules\php\PHP-7-x64;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Users\Katrusha Andrey\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Users\Katrusha Andrey\AppData\Roaming\nvm;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Nodist\bin; C:\Users\Katrusha Andrey\AppData\;C:\Program Files\nodejs\;C:\Program Files (x86)\Yarn\bin;C:\Users\Katrusha Andrey\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files (x86)\Mercurial;C:\Users\Katrusha Andrey\AppData\Roaming\Composer\vendor\bin;C:\NVM\nvm;C:\Program Files\nodejs;C:\Users\Katrusha Andrey\AppData\Roaming\nvm; C:\Users\Katrusha Andrey\AppData\;C:\Users\Katrusha Andrey\AppData\Roaming\npm;C:\Users\Katrusha Andrey\AppData\Local\Yarn\.bin
8 verbose lifecycle [email protected]~prepare: CWD: C:\Users\Katrusha Andrey\Documents\te4stREADER\readium-js-viewer
9 silly lifecycle [email protected]~prepare: Args: [ '/d /s /c', 'npm run prepare:local' ]
10 silly lifecycle [email protected]~prepare: Returned: code: 1  signal: null
11 info lifecycle [email protected]~prepare: Failed to exec prepare script
12 verbose stack Error: [email protected] prepare: `npm run prepare:local`
12 verbose stack Exit status 1
12 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
12 verbose stack     at emitTwo (events.js:106:13)
12 verbose stack     at EventEmitter.emit (events.js:191:7)
12 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
12 verbose stack     at emitTwo (events.js:106:13)
12 verbose stack     at ChildProcess.emit (events.js:191:7)
12 verbose stack     at maybeClose (internal/child_process.js:877:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
13 verbose pkgid [email protected]
14 verbose cwd C:\Users\Katrusha Andrey\Documents\te4stREADER\readium-js-viewer
15 error Windows_NT 10.0.14393
16 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "prepare"
17 error node v6.9.3
18 error npm  v3.10.10
19 error code ELIFECYCLE
20 error [email protected] prepare: `npm run prepare:local`
20 error Exit status 1
21 error Failed at the [email protected] prepare script 'npm run prepare:local'.
21 error Make sure you have the latest version of node.js and npm installed.
21 error If you do, this is most likely a problem with the readium-cfi-js package,
21 error not with npm itself.
21 error Tell the author that this fails on your system:
21 error     npm run prepare:local
21 error You can get information on how to open an issue for this project with:
21 error     npm bugs readium-cfi-js
21 error Or if that isn't available, you can get their info via:
21 error     npm owner ls readium-cfi-js
21 error There is likely additional logging output above.
22 verbose exit [ 1, true ]

@danielweck
Copy link
Member

Okay thanks. Can you please try in the develop branch instead of master?

@danielweck
Copy link
Member

danielweck commented Jan 6, 2017

If this still fails, try decomposing the npm run prepare command into its constituent parts:
https://github.com/readium/readium-cfi-js/blob/develop/package.cson#L177
npm outdated
npm install
npm update
node readium-build-tools/patchRequireJS.js
node readium-build-tools/gitHubForksUpdater.js

@kaflanTech
Copy link
Author

kaflanTech commented Feb 17, 2017

Ok.
How to instaled this libary in npm?
http://prntscr.com/e9vbnl
What steps i need for instal libary in my project and use it.

@danielweck
Copy link
Member

None of the ReadiumJS libraries (individual readium.-* Github repositories) are being maintained on the official npm package hosting service.
You have to build them yourself ('npm run prepare && npm run build' and additionally for js-viewer: 'npm run dist+sourcemap')

@DougsAraujo
Copy link

how to overcome this problem? Im using GIT

$ npm run prepare
npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "run" "prepare"
npm ERR! node v6.9.3
npm ERR! npm v3.10.10

npm ERR! missing script: prepare
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Douglas\Desktop\Readium\readium-js-viewer-master\npm-debug .log

@jccr
Copy link
Contributor

jccr commented Mar 6, 2018

@DougsAraujo
Hello.
Please try: npm run prepare:all

@DougsAraujo
Copy link

@jccr I tried

npm ERR! Windows_NT 10.0.16299
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "run" "prepare:all"
npm ERR! node v6.9.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] prepare:all: npm run prepare:submodule && npm run prepare:local
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepare:all script 'npm run prep are:submodule && npm run prepare:local'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the readium-js-viewer pac kage,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run prepare:submodule && npm run prepare:local
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs readium-js-viewer
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls readium-js-viewer
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to in stall?

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Douglas\Desktop\Readium test\readium-js-viewer-master\npm- debug.log

@DougsAraujo
Copy link

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 'run',
1 verbose cli 'prepare:all' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prepare:all' ]
5 info lifecycle [email protected]prepare:all: [email protected]
6 verbose lifecycle [email protected]
prepare:all: unsafe-perm in lifecycle true
7 verbose lifecycle [email protected]prepare:all: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\Douglas\Desktop\Readium test\readium-js-viewer-master\node_modules.bin;C:\Users\Douglas\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Douglas\bin;C:\ProgramData\Oracle\Java\javapath;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\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Skype\Phone;C:\Users\Douglas\Desktop\apache-maven-3.5.0\bin;Files\gs\gs8.70\bi;C:\Program Files\Java\jdk1.8.0_45\bin";C:\Program Files\Git\cmd;C:\TDM-GCC-64\bin;C:\Program Files\MiKTeX 2.9\miktex\bin\x64;C:\Program Files (x86)\Brackets\command;C:\Program Files\nodejs;C:\Program Files (x86)\Yarn\bin;C:\Users\Douglas\AppData\Local\Programs\Python\Python36-32\Scripts;C:\Users\Douglas\AppData\Local\Programs\Python\Python36-32;C:\Users\Douglas\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Heroku\bin;C:\Users\Douglas\AppData\Roaming\npm;C:\Users\Douglas\AppData\Local\Yarn\bin;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl
8 verbose lifecycle [email protected]
prepare:all: CWD: C:\Users\Douglas\Desktop\Readium test\readium-js-viewer-master
9 silly lifecycle [email protected]prepare:all: Args: [ '/d /s /c',
9 silly lifecycle 'npm run prepare:submodule && npm run prepare:local' ]
10 silly lifecycle [email protected]
prepare:all: Returned: code: 1 signal: null
11 info lifecycle [email protected]~prepare:all: Failed to exec prepare:all script
12 verbose stack Error: [email protected] prepare:all: npm run prepare:submodule && npm run prepare:local
12 verbose stack Exit status 1
12 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
12 verbose stack at emitTwo (events.js:106:13)
12 verbose stack at EventEmitter.emit (events.js:191:7)
12 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
12 verbose stack at emitTwo (events.js:106:13)
12 verbose stack at ChildProcess.emit (events.js:191:7)
12 verbose stack at maybeClose (internal/child_process.js:877:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
13 verbose pkgid [email protected]
14 verbose cwd C:\Users\Douglas\Desktop\Readium test\readium-js-viewer-master
15 error Windows_NT 10.0.16299
16 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "prepare:all"
17 error node v6.9.3
18 error npm v3.10.10
19 error code ELIFECYCLE
20 error [email protected] prepare:all: npm run prepare:submodule && npm run prepare:local
20 error Exit status 1
21 error Failed at the [email protected] prepare:all script 'npm run prepare:submodule && npm run prepare:local'.
21 error Make sure you have the latest version of node.js and npm installed.
21 error If you do, this is most likely a problem with the readium-js-viewer package,
21 error not with npm itself.
21 error Tell the author that this fails on your system:
21 error npm run prepare:submodule && npm run prepare:local
21 error You can get information on how to open an issue for this project with:
21 error npm bugs readium-js-viewer
21 error Or if that isn't available, you can get their info via:
21 error npm owner ls readium-js-viewer
21 error There is likely additional logging output above.
22 verbose exit [ 1, true ]

@danielweck
Copy link
Member

Your versions of NPM (3.10.10) and NodeJS (6.9.3) are quite old. Would you mind trying with a more recent release (install NodeJS v8 or v9, then make sure NPM is also up-to-date by using npm --global update): https://nodejs.org

@danielweck
Copy link
Member

If the build still fails with modern version of NodeJS and NPM, then you can try to clear the cache: sudo npm cache clean --force

@DougsAraujo
Copy link

DougsAraujo commented Mar 6, 2018

Node v8.9.4 and NPM 5.6.0 :/

$ npm run prepare:all

[email protected] prepare:all C:\Users\Douglas\Desktop\Readium\readium-js-viewer
npm run prepare:submodule && npm run prepare:local

'npm' n▒o ▒ reconhecido como um comando interno
ou externo, um programa oper▒vel ou um arquivo em lotes.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prepare:all: npm run prepare:submodule && npm run prepare:local
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepare:all 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\Douglas\AppData\Roaming\npm-cache_logs\2018-03-06T22_27_31_810Z-debug.log

@DougsAraujo
Copy link

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 'run',
1 verbose cli 'prepare:all' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prepare:all' ]
5 info lifecycle [email protected]prepare:all: [email protected]
6 verbose lifecycle [email protected]
prepare:all: unsafe-perm in lifecycle true
7 verbose lifecycle [email protected]prepare:all: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Douglas\Desktop\Readium\readium-js-viewer\node_modules.bin;C:\Users\Douglas\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Douglas\bin;C:\ProgramData\Oracle\Java\javapath;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\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Skype\Phone;C:\Users\Douglas\Desktop\apache-maven-3.5.0\bin;Files\gs\gs8.70\bi;C:\Program Files\Java\jdk1.8.0_45\bin";C:\Program Files\Git\cmd;C:\TDM-GCC-64\bin;C:\Program Files\MiKTeX 2.9\miktex\bin\x64;C:\Program Files (x86)\Brackets\command;C:\Program Files (x86)\Yarn\bin;C:\Program Files\nodejs;C:\Users\Douglas\AppData\Local\Programs\Python\Python36-32\Scripts;C:\Users\Douglas\AppData\Local\Programs\Python\Python36-32;C:\Users\Douglas\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Heroku\bin;C:\Users\Douglas\AppData\Local\Yarn\bin;C:\Users\Douglas\AppData\Roaming\npm;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl
8 verbose lifecycle [email protected]
prepare:all: CWD: C:\Users\Douglas\Desktop\Readium\readium-js-viewer
9 silly lifecycle [email protected]prepare:all: Args: [ '/d /s /c',
9 silly lifecycle 'npm run prepare:submodule && npm run prepare:local' ]
10 silly lifecycle [email protected]
prepare:all: Returned: code: 1 signal: null
11 info lifecycle [email protected]~prepare:all: Failed to exec prepare:all script
12 verbose stack Error: [email protected] prepare:all: npm run prepare:submodule && npm run prepare:local
12 verbose stack Exit status 1
12 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285: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:\Program Files\nodejs\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 [email protected]
14 verbose cwd C:\Users\Douglas\Desktop\Readium\readium-js-viewer
15 verbose Windows_NT 10.0.16299
16 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "prepare:all"
17 verbose node v8.9.4
18 verbose npm v5.6.0
19 error code ELIFECYCLE
20 error errno 1
21 error [email protected] prepare:all: npm run prepare:submodule && npm run prepare:local
21 error Exit status 1
22 error Failed at the [email protected] prepare:all 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 assume you also have the latest stable Git version from https://gitforwindows.org/ (or alternatively https://git-scm.com/downloads) ?
Please launch GitBash (not MSDOS) and try inside readium-cfi-js: rm -rf node_modules && npm run prepare:all

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

5 participants