Open desaiuditd opened 9 years ago
I have the same problem. Is it already fixed?
looks like it still needs to be updated on npm.
bumped - I clearly just needed some peer pressure (it's updated)
I'm having this same issue in the event that wp-cli is not installed locally. it appears in the event of wp cli not being installed, stdout in commands.js is blank which is causing a json parse error.
SyntaxError: Unexpected end of input
at Object.parse (native)
at %Package_Path%/node_modules/wp-cli/lib/commands.js:13:19
at ChildProcess.exithandler (child_process.js:232:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
I get this error when trying to execute
WP.discover
command.I tried it on Linux as well as Mac environment.
node-wp-cli version: 0.0.4
Following is the output log.
Mac
Linux