contracts.coffee
contracts.coffee copied to clipboard
Cannot find module 'contracts-js'
I've tried installing both contracts-js
and contracts.js
globally and locally, but keep getting this error both when I try to run coffee --contracts script.coffee
or when I compile using contracts and then try to run the resulting javascript.
Error: Cannot find module 'contracts-js'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Undefined (/Users/Kevin/Desktop/play/contracts/test.coffee:1:208)
at Object.<anonymous> (/Users/Kevin/Desktop/play/contracts/test.coffee:1:274)
at Module._compile (module.js:425:26)
at Object.exports.run (/Users/Kevin/.nvm/versions/node/v5.0.0/lib/node_modules/contracts.coffee/lib/coffee-script/coffee-script.js:78:25)
at compileScript (/Users/Kevin/.nvm/versions/node/v5.0.0/lib/node_modules/contracts.coffee/lib/coffee-script/command.js:176:29)
at /Users/Kevin/.nvm/versions/node/v5.0.0/lib/node_modules/contracts.coffee/lib/coffee-script/command.js:151:18