You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fs.js:56
assertEncoding(options.encoding);
^
TypeError: assertEncoding is not a function
at getOptions (fs.js:56:5)
at Object.realpathSync (fs.js:1468:13)
at toRealPath (module.js:130:13)
at tryFile (module.js:126:22)
at tryPackage (module.js:107:10)
at Function.Module._findPath (module.js:183:20)
at Function.Module._resolveFilename (module.js:468:25)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
also tested on another Ubuntu 14.04 server. Was not a problem using node 6.9.5
I have the same error. Running a python code on the background, which makes pipe to node. nohup python hello.py & . Inside python code I just called a node script. Original code works without nohup.
Something like this: os.popen( val + "| node & echo $! >" + constants.LOG_PATH + "/my-app.pid").read().
assertEncoding(options.encoding);
^
TypeError: assertEncoding is not a function
at getOptions (fs.js:58:5)
at Object.realpathSync (fs.js:1564:13)
at toRealPath (module.js:130:13)
at Function.Module._findPath (module.js:178:22)
at Function.Module._resolveFilename (module.js:468:25)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at [stdin]:1:13
at ContextifyScript.Script.runInThisContext (vm.js:23:33)
fs.js:58
Activity
addaleax commentedon Feb 9, 2017
Thanks for reporting this! Seems like some kind of circular dependency in the core module to me…
fs: avoid circular dependency in SyncWriteStream
Support for newer Babel and work-around the following Node 7.x bug:
avatar-lavventura commentedon Jun 12, 2017
I have the same error. Running a python code on the background, which makes pipe to node.
nohup python hello.py &. Inside python code I just called a node script. Original code works withoutnohup.Something like this:
os.popen( val + "| node & echo $! >" + constants.LOG_PATH + "/my-app.pid").read().p3x-robot commentedon Sep 19, 2017
i have this error as well, so it is because of 8.5?
BridgeAR commentedon Sep 23, 2017
I can not reproduce this from 8.4 on but I do not know what might have fixed it.
@p3x-robot this is still occuring for you on 8.5? Do you have a minimal test case?
p3x-robot commentedon Sep 23, 2017
Yes it is still error:
p3x-robot commentedon Sep 23, 2017
this is my error.
12 remaining items
test: add regression test for #11257
test: add regression test for #11257
gireeshpunathil commentedon May 14, 2018
this is fixed in the latest, and a regression test is added now through #20391