Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERR_INVALID_ARG_TYPE(name, 'string', value) #91

Open
P-Vamshi-Seshasayan opened this issue Jan 1, 2021 · 0 comments
Open

ERR_INVALID_ARG_TYPE(name, 'string', value) #91

P-Vamshi-Seshasayan opened this issue Jan 1, 2021 · 0 comments

Comments

@P-Vamshi-Seshasayan
Copy link

P-Vamshi-Seshasayan commented Jan 1, 2021

I want to display the link of teh generated slides on a php page using the following code. slides.md is already there. It's working fine in the terminal but not in php.
$output=array();
exec('"/home/user/.npm-global/bin/md2gslides" slides.md --copy=1z3XLhVWc03U3deHy --title "Test Slide" --no-browser 2>&1', $output);
print_r($output);

Any help is appreciated.

Error:
Array
(
[0] => internal/validators.js:125
[1] => throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
[2] => ^
[3] =>
[4] => TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
[5] => at validateString (internal/validators.js:125:11)
[6] => at Object.join (path.js:1147:7)
[7] => at Object. (/home/user/.npm-global/lib/node_modules/md2gslides/bin/md2gslides.js:33:38)
[8] => at Module._compile (internal/modules/cjs/loader.js:778:30)
[9] => at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
[10] => at Module.load (internal/modules/cjs/loader.js:653:32)
[11] => at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
[12] => at Function.Module._load (internal/modules/cjs/loader.js:585:3)
[13] => at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
[14] => at startup (internal/bootstrap/node.js:283:19)
[15] => at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant