Skip to content

Not Working #1788

@temujin00

Description

@temujin00

slither .

'npx hardhat clean' running (wd: /root/Tools/new-contracts)
'npx' returned non-zero exit code 1
npm ERR! cb.apply is not a function
stderr:
stderr: npm ERR! A complete log of this run can be found in:
stderr: npm ERR! /root/.npm/_logs/2023-03-21T17_33_32_422Z-debug.log
stderr: Install for [ 'hardhat@latest' ] failed with code 1
'npx hardhat clean --global' running (wd: /root/Tools/new-contracts)
'npx' returned non-zero exit code 1
npm ERR! cb.apply is not a function
stderr:
stderr: npm ERR! A complete log of this run can be found in:
stderr: npm ERR! /root/.npm/_logs/2023-03-21T17_33_35_309Z-debug.log
stderr: Install for [ 'hardhat@latest' ] failed with code 1
Problem executing hardhat: npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-03-21T17_33_38_125Z-debug.log
Install for [ 'hardhat@latest' ] failed with code 1

'npx hardhat compile --force' running

npm ERR! cb.apply is not a function

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-03-21T17_33_40_892Z-debug.log
Install for [ 'hardhat@latest' ] failed with code 1

Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/slither_analyzer-0.9.3-py3.10.egg/slither/main.py", line 837, in main_impl
) = process_all(filename, args, detector_classes, printer_classes)
File "/usr/local/lib/python3.10/site-packages/slither_analyzer-0.9.3-py3.10.egg/slither/main.py", line 90, in process_all
compilations = compile_all(target, **vars(args))
File "/usr/local/lib/python3.10/site-packages/crytic_compile-0.3.1-py3.10.egg/crytic_compile/crytic_compile.py", line 643, in compile_all
compilations.append(CryticCompile(target, **kwargs))
File "/usr/local/lib/python3.10/site-packages/crytic_compile-0.3.1-py3.10.egg/crytic_compile/crytic_compile.py", line 131, in init
self._compile(**kwargs)
File "/usr/local/lib/python3.10/site-packages/crytic_compile-0.3.1-py3.10.egg/crytic_compile/crytic_compile.py", line 553, in _compile
self._platform.compile(self, **kwargs)
File "/usr/local/lib/python3.10/site-packages/crytic_compile-0.3.1-py3.10.egg/crytic_compile/platform/hardhat.py", line 195, in compile
hardhat_like_parsing(crytic_compile, self._target, build_directory, hardhat_working_dir)
File "/usr/local/lib/python3.10/site-packages/crytic_compile-0.3.1-py3.10.egg/crytic_compile/platform/hardhat.py", line 49, in hardhat_like_parsing
os.listdir(build_directory), key=lambda x: os.path.getmtime(Path(build_directory, x))
FileNotFoundError: [Errno 2] No such file or directory: '/root/Tools/new-contracts/artifacts/build-info'
ERROR:root:Error in .
ERROR:root:Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/slither_analyzer-0.9.3-py3.10.egg/slither/main.py", line 837, in main_impl
) = process_all(filename, args, detector_classes, printer_classes)
File "/usr/local/lib/python3.10/site-packages/slither_analyzer-0.9.3-py3.10.egg/slither/main.py", line 90, in process_all
compilations = compile_all(target, **vars(args))
File "/usr/local/lib/python3.10/site-packages/crytic_compile-0.3.1-py3.10.egg/crytic_compile/crytic_compile.py", line 643, in compile_all
compilations.append(CryticCompile(target, **kwargs))
File "/usr/local/lib/python3.10/site-packages/crytic_compile-0.3.1-py3.10.egg/crytic_compile/crytic_compile.py", line 131, in init
self._compile(**kwargs)
File "/usr/local/lib/python3.10/site-packages/crytic_compile-0.3.1-py3.10.egg/crytic_compile/crytic_compile.py", line 553, in _compile
self._platform.compile(self, **kwargs)
File "/usr/local/lib/python3.10/site-packages/crytic_compile-0.3.1-py3.10.egg/crytic_compile/platform/hardhat.py", line 195, in compile
hardhat_like_parsing(crytic_compile, self._target, build_directory, hardhat_working_dir)
File "/usr/local/lib/python3.10/site-packages/crytic_compile-0.3.1-py3.10.egg/crytic_compile/platform/hardhat.py", line 49, in hardhat_like_parsing
os.listdir(build_directory), key=lambda x: os.path.getmtime(Path(build_directory, x))
FileNotFoundError: [Errno 2] No such file or directory: '/root/Tools/new-contracts/artifacts/build-info'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions