npx add-manifest@latest not working
hello, when I try to add manifest, it returns an error while trying to build.
>npx add-manifest@latest
√ Add Manifest to your project...
√ Update package.json file...
√ Add settings...
√ Install dependencies...
√ Add environment variables...
| Build the database...node:internal/errors:983
const err = new Error(message);
>npx add-manifest@latest
√ Add Manifest to your project...
√ Update package.json file...
√ Add settings...
√ Install dependencies...
√ Add environment variables...
| Build the database...node:internal/errors:983
const err = new Error(message);
2 Replies
Error: Command failed: npm run manifest
'C:\Users\---\---\---\---' is not recognized as an internal or external command,
operable program or batch file.
node:events:502
throw er; // Unhandled 'error' event
^
Error: spawn C:\Users\---\---\---\--\root-folder\node_modules\.bin\nodemon.cmd ENOENT
at notFoundError (C:\Users\---etc.---\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (C:\Users\---etc.---\node_modules\cross-spawn\lib\enoent.js:40:16)
at cp.emit (C:\Users\---etc.---\node_modules\cross-spawn\lib\enoent.js:27:25)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)
Emitted 'error' event on ChildProcess instance at:
at cp.emit (C:\Users\---etc.---\node_modules\cross-spawn\lib\enoent.js:30:37)
at ChildProcess._handle.onexit (node:internal/child_process:293:12) {
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn C:\\--etc.--\root-folder\\node_modules\\.bin\\nodemon.cmd',
path: 'C:\\Users\\--etc.--\\\root-folder\\node_modules\\.bin\\nodemon.cmd',
spawnargs: [
'.',
'--config',
'C:\\--etc.--\\root-folder\\node_modules\\manifest\\scripts\\watch/nodemon.json'
]
}
Error: Command failed: npm run manifest
'C:\Users\---\---\---\---' is not recognized as an internal or external command,
operable program or batch file.
node:events:502
throw er; // Unhandled 'error' event
^
Error: spawn C:\Users\---\---\---\--\root-folder\node_modules\.bin\nodemon.cmd ENOENT
at notFoundError (C:\Users\---etc.---\node_modules\cross-spawn\lib\enoent.js:6:26)
at verifyENOENT (C:\Users\---etc.---\node_modules\cross-spawn\lib\enoent.js:40:16)
at cp.emit (C:\Users\---etc.---\node_modules\cross-spawn\lib\enoent.js:27:25)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)
Emitted 'error' event on ChildProcess instance at:
at cp.emit (C:\Users\---etc.---\node_modules\cross-spawn\lib\enoent.js:30:37)
at ChildProcess._handle.onexit (node:internal/child_process:293:12) {
code: 'ENOENT',
errno: 'ENOENT',
syscall: 'spawn C:\\--etc.--\root-folder\\node_modules\\.bin\\nodemon.cmd',
path: 'C:\\Users\\--etc.--\\\root-folder\\node_modules\\.bin\\nodemon.cmd',
spawnargs: [
'.',
'--config',
'C:\\--etc.--\\root-folder\\node_modules\\manifest\\scripts\\watch/nodemon.json'
]
}
Hello! Glad it’s working now. Let us know if you run into the problem again.