I have followed your steps and getting error below, is there any network settings that needs to be configured to get npm dependencies sorted?
Is there any need to wait for DSpace version 10.1 that maybe come bug free from npm dependencies?
$ npm install
npm warn deprecated infl...@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you wan t a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rim...@2.7.1: Rimraf versions prior to v4 are no longer supported
npm warn deprecated rim...@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated gl...@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated redux-devtoo...@2.13.9: Package moved to @redux-devtools/extension.
npm warn deprecated sourcem...@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm warn deprecated crit...@0.0.24: Ownership of Critters has moved to the Nuxt team, who will be maintaining the project going forward. If you'd like to keep using Critters, please switch to the actively-maintained fork at
https://github.com/danielroe/beastiesnpm warn deprecated @npmcli/move...@1.1.2: This functionality has been moved to @npmcli/fs
npm warn deprecated @humanwhocodes/config...@0.13.0: Use @eslint/config-array instead
npm warn deprecated @humanwhocodes/object...@2.0.3: Use @eslint/object-schema instead
npm warn deprecated uu...@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See
https://v8.dev/blog/math-random for details.
npm warn deprecated uu...@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See
https://v8.dev/blog/math-random for details.
npm warn deprecated @material-ui/sty...@4.11.5: Material UI v4 doesn't receive active development since September 2021. See the guide
https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5.
npm warn deprecated @material-ui/l...@4.0.0-alpha.61: Material UI v4 doesn't receive active development since September 2021. See the guide
https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5.
npm warn deprecated react-bea...@13.1.1: react-beautiful-dnd is now deprecated. Context and options:
https://github.com/atlassian/react-beautiful-dnd/issues/2672npm warn deprecated esl...@8.57.1: This version is no longer supported. Please see
https://eslint.org/version-support for other options.
npm warn deprecated @material-ui/co...@4.12.4: Material UI v4 doesn't receive active development since September 2021. See the guide
https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5.
> dspace-...@9.1.0 postinstall
> npm run build:lint || echo 'Skipped DSpace ESLint plugins.'
> dspace-...@9.1.0 build:lint
> rimraf 'lint/dist/**/*.js' 'lint/dist/**/*.js.map' && tsc -b lint/tsconfig.json
lint/src/util/structure.ts:18:20 - error TS2314: Generic type 'RuleMetaData<MessageIds, Options>' requires 2 type argument(s).
18 export type Meta = RuleMetaData<string, unknown, unknown[]>;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lint/src/util/theme-support.ts:13:26 - error TS7016: Could not find a declaration file for module 'glob'. '/dspace/Install/dspace-angular-dspace-10.0/node_modules/glob/glob.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/glob` if it exists or add a new declaration (.d.ts) file containing `declare module 'glob';`
13 import { globSync } from 'glob';
~~~~~~
lint/src/rules/ts/alias-imports.ts:204:343 - error TS2352: Conversion of type 'Identifier' to type 'StringLiteral' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Type 'Identifier' is missing the following properties from type 'StringLiteral': value, raw
204 const hasCorrectAliasedImport: boolean = (node.parent as TSESTree.ImportDeclaration).specifiers.find((specifier: TSESTree.ImportClause) =>
specifier.local.name === option.local && specifier.type === AST_NODE_TYPES.ImportSpecifier && ((((specifier as TSESTree.ImportSpecifier).imported as TSESTree.Identifier).name === option.imported) || (((specifier as TSESTree.ImportSpecifier).imported as TSESTree.StringLiteral).value === option.imported))) !== undefined;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lint/src/rules/ts/alias-imports.ts:264:107 - error TS2352: Conversion of type 'Identifier' to type 'StringLiteral' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
264 } else if ((
node.local.name === (node.imported as TSESTree.Identifier).name) || (
node.local.name === (node.imported as TSESTree.StringLiteral).value)) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lint/src/rules/ts/themed-component-usages.ts:123:101 - error TS2352: Conversion of type 'Identifier' to type 'StringLiteral' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
123 const entry = getThemeableComponentByBaseClass((importedNode as TSESTree.Identifier).name ?? (importedNode as TSESTree.StringLiteral).value);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lint/src/rules/ts/themed-component-usages.ts:126:117 - error TS2352: Conversion of type 'Identifier' to type 'StringLiteral' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
126 throw new Error(`No such themeable component in registry: '${(importedNode as TSESTree.Identifier).name ?? (importedNode as TSESTree.StringLiteral).value}'`);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lint/test/testing.ts:29:3 - error TS2353: Object literal may only specify known properties, and 'languageOptions' does not exist in type 'RuleTesterConfig'.
29 languageOptions: {
~~~~~~~~~~~~~~~
lint/test/testing.ts:54:3 - error TS2353: Object literal may only specify known properties, and 'languageOptions' does not exist in type 'RuleTesterConfig'.
54 languageOptions: {
~~~~~~~~~~~~~~~
Found 8 errors.
Skipped DSpace ESLint plugins.
added 1701 packages, and audited 1704 packages in 55s
337 packages are looking for funding
run `npm fund` for details
96 vulnerabilities (12 low, 37 moderate, 44 high, 3 critical)
To address issues that do not require attention, run:
npm audit fix
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.