Truffle compiler can't find open zeppelin contracts

Viewed 570

I get an error message when I try to compile. I checked inside node_modules and all the contracts are there. im running truffle with sudo. Its not this just this import all open zeppelin contracts are doing this.

Error: Could not find /home/a/Documents/so/contracts/openzeppelin-solidity/contracts/crowdsale/emission/MintedCrowdsale.sol from any sources; imported from /home/a/Documents/so/contracts/crowdsale.sol
    at Resolver.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/packages/resolver/dist/lib/resolver.js:53:1)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/local/lib/node_modules/truffle/build/webpack:/packages/resolver/dist/lib/resolver.js:5:42)
    at <anonymous>
Truffle v5.1.28 (core: 5.1.28)
Node v8.10.0

I'm importing like this

pragma solidity ^0.4.23;

import "openzeppelin-solidity/contracts/crowdsale/emission/MintedCrowdsale.sol";
1 Answers
Related