Error on npm project
cosad3s opened this issue · 0 comments
cosad3s commented
Installed with pip3 install it-depends
Go to /my/npm/project
then:
❯ it-depends
Traceback (most recent call last):
File "/home/seb/.local/bin/it-depends", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/seb/.local/lib/python3.11/site-packages/it_depends/cli.py", line 176, in main
package_list = resolve(
^^^^^^^^
File "/home/seb/.local/lib/python3.11/site-packages/it_depends/dependencies.py", line 844, in resolve
source_package = resolver.resolve_from_source(repo_or_spec, cache=cache)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/seb/.local/lib/python3.11/site-packages/it_depends/npm.py", line 29, in resolve_from_source
return NPMResolver.from_package_json(repo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/seb/.local/lib/python3.11/site-packages/it_depends/npm.py", line 60, in from_package_json
return SourcePackage(name, version, source_repo=source_repository,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/seb/.local/lib/python3.11/site-packages/it_depends/dependencies.py", line 277, in __init__
super().__init__(name=name, version=version, dependencies=dependencies,
File "/home/seb/.local/lib/python3.11/site-packages/it_depends/dependencies.py", line 137, in __init__
self.dependencies: FrozenSet[Dependency] = frozenset(dependencies)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/seb/.local/lib/python3.11/site-packages/it_depends/npm.py", line 62, in <genexpr>
Dependency(package=dep_name, semantic_version=NPMResolver.parse_spec(dep_version), source="npm")
File "/home/seb/.local/lib/python3.11/site-packages/it_depends/dependencies.py", line 63, in __init__
assert(isinstance(semantic_version, SemanticVersion))
AssertionError