Solc error in win10


(Chris K) #1

Hello, i have a problem using npm/solc in Windows 10.
When running this line “solc.compile(source, 1)” i get the errors below:

C:\Users\C\Desktop\Inbox\node_modules\solc\soljson.js:1
(function (exports, require, module, __filename, __dirname) { var Module;if(!Module)Module=(typeof Module!==“undefined”?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=typeof window===“object”;var ENVIRONMENT_IS_WORKER=typeof importScripts===“function”;var ENVIRONMENT_IS_NODE=typeof process===“object”&&typeof require===“function”&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){if(!Module[“print”])Module[“print”]=function print(x){process[“stdout”].write(x+"\n")};if(!Module[“printErr”])Module[“printErr”]=function printErr(x){process[“stderr”].write(x+"\n")};var nodeFS=require(“fs”);var nodePath=require(“path”);Module[“read”]=function read(filename,binary){filename=nodePath"normalize";var ret=nodeFS"readFileSync"

AssertionError [ERR_ASSERTION]: Invalid callback specified.
at wrapCallback (C:\Users\C\Desktop\Inbox\node_modules\solc\wrapper.js:16:5)
at runWithReadCallback (C:\Users\C\Desktop\Inbox\node_modules\solc\wrapper.js:37:42)
at compileStandard (C:\Users\C\Desktop\Inbox\node_modules\solc\wrapper.js:78:14)
at Object.compileStandardWrapper (C:\Users\C\Desktop\Inbox\node_modules\solc\wrapper.js:85:14)
at Object. (C:\Users\C\Desktop\Inbox\compile.js:8:23)
at Module._compile (internal/modules/cjs/loader.js:707:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:718:10)
at Module.load (internal/modules/cjs/loader.js:605:32)
at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
at Function.Module._load (internal/modules/cjs/loader.js:536:3)
Any ideas?


(system) #2

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.