I got error when try to install solc using
npm install -g solc
here is the error:
erfans-MacBook-Pro:01 erfanandesta$ npm uninstall -g solc
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/solc
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/solc/node_modules
npm ERR! path /usr/local/lib/node_modules/solc
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/solc'
npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/solc']
npm ERR! stack:
npm ERR! "Error: EACCES: permission denied, access '/usr/local/lib/node_modules/solc'",
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules/solc' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/erfanandesta/.npm/_logs/2018-12-06T07_44_32_823Z-debug.log
when i use sudo npm install -g solc it install successfully i now i got this error :
internal/modules/cjs/loader.js:605
throw err;
^
Error: Cannot find module './smtchecker.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Module.require (internal/modules/cjs/loader.js:658:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/usr/local/lib/node_modules/solc/solcjs:9:18)
at Module._compile (internal/modules/cjs/loader.js:722:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
solcjsand it should say thatno file providedas I see in tutorials but i got that last error. I search in for .smtchecker and there is nothing to help – andesta.erfan Dec 06 '18 at 08:18solcjs --helponce and let me know the result. – Aniket Dec 06 '18 at 08:26solcrepo? – Paul Razvan Berg Dec 17 '18 at 23:11