Thanks to Kshitij's answer at another page! but I still have this error after applying this answer. which drives me crazy! Sorry for post the question as a answer-_-
After run truffle init and truffle compile, it works fine. the contracts that I compile are examples from truffle:(when I change to HelloWorld it's the exactly same error)
- ConvertLib.sol MetaCoin.sol Migrations.sol
other information is:
- ubuntu 14.04.2
- node -v v7.10.0
- npm -c 4.2.0
- Truffle v3.3.2 (core: 3.3.1)
- Solidity v0.4.11 (solc-js)
Every time I run "truffle migrate" it shows Error, with or without testrpc running
Error: Cannot find module 'truffle-expect' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.<anonymous> ...
installing truffle-expect won't work, would anyone give me a hand please?