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 dependecies #27

Open
dpsa-dev opened this issue Dec 11, 2024 · 0 comments
Open

NPM dependecies #27

dpsa-dev opened this issue Dec 11, 2024 · 0 comments

Comments

@dpsa-dev
Copy link

I'm very new to node js, I've downloaded the project, do I need to install the packages /dependencies somehow? and do I need a specific version of npm? I've tried

npm install --force
npm run start
npm i --save-dev @types/node

npm install --force
npm WARN using --force Recommended protections disabled.
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/rollup
npm WARN dev rollup@"^4.4.0" from the root project
npm WARN 12 more (@rollup/plugin-commonjs, @rollup/plugin-image, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer rollup@"^2.0.0" from [email protected]
npm WARN node_modules/rollup-plugin-terser
npm WARN dev rollup-plugin-terser@"^7.0.2" from the root project
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/rollup
npm WARN peer rollup@"^2.0.0" from [email protected]
npm WARN node_modules/rollup-plugin-terser
npm WARN dev rollup-plugin-terser@"^7.0.2" from the root project

one of the first errors:
.ts:301:17 - error TS2591: Cannot find name 'Buffer'. Do you need to install type definitions for node? Try npm i --save-dev @types/node and then add 'node' to the types field in your tsconfig.

some of the latest errors:

[email protected] start
npm run build && lite-server -c ls-config.json

[email protected] build
npm run buildts && npm run buildru && npm run copypdfjsworker

[email protected] buildts
tsc && npm run copypngtotsc

src/document/entities/annotations/annotation-dict.ts:1144:5 - error TS2322: Type 'Timeout' is not assignable to type 'number'.

1144 this._transformationTimer = setTimeout(() => {
~~~~~~~~~~~~~~~~~~~~~~~~~

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

1 participant