Slither Error Source "@openzeppelin/contracts/access/Ownable.sol" not found



Run slither command then encounter error like :

Error: Source "@openzeppelin/contracts/access/Ownable.sol" not found: File not found. Searched the following locations: "".

Solution : add some flag behind original command ex.

slither contracts/YOUR_CONTRACT.sol  --solc-remaps @openzeppelin/=$(pwd)/node_modules/@openzeppelin/