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

/home/node/.npm-global/lib/node_modules/

Which is also part of my NODE_PATH enviroment variable:

echo $NODE_PATH
/home/node/.npm-global/lib/node_modules:/usr/local/nvm/v14.16.0/lib/node_modules:

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
Florian