When I use child_process in nodejs, I get the following error and I don't know why

const { exec } = require('child_process');

// URL
exec(`start obsidian://open?vault=Obsidian%20Vault&file=my%20note.md`, (error, stdout, stderr) => {
	if (error) {
		console.error(`exec error: ${error}`);
	console.log(`stdout: ${stdout}`);
	console.error(`stderr: ${stderr}`);

I can get Obsidian to open, but when I look for the md file, I get an error like below.

error message as blow

If anyone knows the cause, I’d appreciate some guidance.

Moved from Help to Developers & API, and removed “plugin-release” tag (because this isn’t a plugin release announcement).

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