File import callback not supported with truffle and global installed contracts

Hey all,

i installed truffle and @openzeppelin as global packages. Now when i try to do

truffle compile

I get the error

ParserError: Source "@openzeppelin/contracts/token/ERC721/ERC721.sol" not found: File import callback not supported

I import the contract as following

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

The contract package resides in


Which is also part of my NODE_PATH enviroment variable:


Have there been any other reports of problems with global installed packages as i couldn’t find any on GitHub or in the forum. Also i couldn’t find any hints in the docs.

Thanks and take care