creativetimofficial / ct-argon-dashboard-pro-svelte

8 stars 7 forks source link

[Bug] Dependencies errors when run pm install #8

Open mvquezm opened 3 years ago

mvquezm commented 3 years ago

Version

1.1.0

Reproduction link

https://jsfiddle.net/

Operating System

Docker container node:16.5 [Linux ff16fed0427f 5.10.25-linuxkit #1 SMP Tue Mar 23 09:27:39 UTC 2021 x86_64 GNU/Linux]

Device

desktop PC

Browser & Version

chrome

Steps to reproduce

  1. cd /code
  2. npm install

    What is expected?

    Install dependencies

    What is actually happening?

    
    root@ff16fed0427f:/code# npm install
    npm notice
    npm notice New minor version of npm available! 7.19.1 -> 7.20.0
    npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.20.0
    npm notice Run npm install -g npm@7.20.0 to update!
    npm notice
    npm ERR! code ERESOLVE
    npm ERR! ERESOLVE unable to resolve dependency tree
    npm ERR!
    npm ERR! While resolving: argon-dashboard-pro-svelte@1.1.0
    npm ERR! Found: svelte@3.38.2
    npm ERR! node_modules/svelte
    npm ERR! dev svelte@"3.38.2" from the root project
    npm ERR!
    npm ERR! Could not resolve dependency:
    npm ERR! peer svelte@"~3.20.0" from sveltejs-forms@2.1.2
    npm ERR! node_modules/sveltejs-forms
    npm ERR! sveltejs-forms@"2.1.2" from the root project
    npm ERR!
    npm ERR! Fix the upstream dependency conflict, or retry
    npm ERR! this command with --force, or --legacy-peer-deps
    npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
    npm ERR!
    npm ERR! See /root/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-07-22T07_38_25_715Z-debug.log


---
### Solution
Fix the dependencies conflicts.
### Additional comments
Also I tried run `npm install --force` and got this:

root@ff16fed0427f:/code# npm install --force npm WARN using --force Recommended protections disabled. npm WARN ERESOLVE overriding peer dependency npm WARN Found: svelte@3.38.2 npm WARN node_modules/svelte npm WARN dev svelte@"3.38.2" from the root project npm WARN 4 more (rollup-plugin-svelte, svelte-flatpickr, ...) npm WARN npm WARN Could not resolve dependency: npm WARN peer svelte@"~3.20.0" from sveltejs-forms@2.1.2 npm WARN node_modules/sveltejs-forms npm WARN sveltejs-forms@"2.1.2" from the root project npm WARN ERESOLVE overriding peer dependency npm WARN Found: yup@0.32.9 npm WARN node_modules/yup npm WARN yup@"0.32.9" from the root project npm WARN npm WARN Could not resolve dependency: npm WARN peer yup@"~0.28.2" from sveltejs-forms@2.1.2 npm WARN node_modules/sveltejs-forms npm WARN sveltejs-forms@"2.1.2" from the root project npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@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 chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated topojson@3.0.2: Use topojson-client, topojson-server or topojson-simplify directly. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated @types/googlemaps@3.43.3: Types for the Google Maps browser API have moved to @types/google.maps. Note: these types are not for the googlemaps npm package, which is a Node API. npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 npm ERR! code ENOENT npm ERR! syscall chmod npm ERR! path /code/node_modules/topojson/node_modules/topojson-server/bin/geo2topo npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, chmod '/code/node_modules/topojson/node_modules/topojson-server/bin/geo2topo' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-07-22T07_44_19_485Z-debug.log


<!-- generated by creative-tim-issues. DO NOT REMOVE -->
danilodeveloper commented 3 years ago

Same as #5

https://github.com/creativetimofficial/ct-argon-dashboard-pro-svelte/issues/5#issuecomment-939534594

askHarshV commented 2 years ago

facing the same issue #5 . most of the packages are deprecated or old...request to creative tim team..please update all the templates and packages