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

client install fails #20

Open
XVhc6A opened this issue Sep 2, 2021 · 3 comments
Open

client install fails #20

XVhc6A opened this issue Sep 2, 2021 · 3 comments

Comments

@XVhc6A
Copy link

XVhc6A commented Sep 2, 2021

after running npm run build
I see:

...
[cp] test/tests/data/snapshot
[ln] chrome/skin/default/zotero/treeitem-bill.png
[ln] chrome/skin/default/zotero/[email protected]
[ln] chrome/skin/default/zotero/treeitem-audioRecording.png
[ln] chrome/skin/default/zotero/[email protected]
Error: [Error: ENOENT: no such file or directory, stat 'resource/react.js'] {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: 'resource/react.js' 
}

If I update all of the submodules to their master:

$ npm run build

> [email protected] build
> node ./scripts/build.js

node:internal/modules/cjs/loader:936
  throw err;
  ^

Error: Cannot find module './lib/colors'
Require stack:


- /media/ssd0/xzss/home/git/zotprime/client/zotero-client/node_modules/colors/safe.js
- /media/ssd0/xzss/home/git/zotprime/client/zotero-client/scripts/build.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:94:18)
at Object.<anonymous> (/media/ssd0/xzss/home/git/zotprime/client/zotero-client/node_modules/colors/safe.js:9:14)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
	code: 'MODULE_NOT_FOUND',
	requireStack: [
		'/media/ssd0/xzss/home/git/zotprime/client/zotero-client/node_modules/colors/safe.js',
		'/media/ssd0/xzss/home/git/zotprime/client/zotero-client/scripts/build.js',
	]
}


any advice on how to get client install working?

@hpxing
Copy link

hpxing commented Jun 13, 2022

have you success/?

@uniuuu
Copy link

uniuuu commented Apr 13, 2023

Hi @XVhc6A @hpxing
I'll take a look in it.

@uniuuu
Copy link

uniuuu commented May 10, 2023

Hi @XVhc6A @hpxing
This error is most likely due to not updated submodules. See my reply #22 (comment) as there is a bug due to typo.
Also note nodejs version compatibility.
Try to build V5 client with nodejs 10. If it'll fail then try with nodejs 8.

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

3 participants