when I run truffle compile, truffle migrate successfully and then truffle console gives me the following error. strong text
**Enexpected error: Cannot provision contracts while instantiating the console.
Error: Cannot parse .DS_Store: Unexpected token in JSON at position 0
at /usr/local/lib/node_modules/truffle/lib/repl.js:69:27
at tryToString (fs.js:447:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:434:12)
truffle(development)> TypeError: Cannot read property 'forEach' of undefined
at TruffleInterpreter.resetContractsInConsoleContext (/usr/local/lib/node_modules/truffle/lib/repl.js:95:17)
at /usr/local/lib/node_modules/truffle/lib/repl.js:44:12**
UPDATE: I solved this problem by pulling a fresh copy of my code from github. And then in my new project directory, I re did npm install. Hope this is helpful
.DS_Store
] somewhere it shouldn't be. Try to find in one of the truffle folders (build, contract, migration or test). Otherwise, it's always good to give OS and software versions. – Greg Jeanmart Mar 5 '17 at 23:23