get UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of null
See original GitHub issueHi.
trying to npx deploy-node-app
and get : " UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toString' of null"
the complete log :
npx: installed 120 in 22.963s (node:1196) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘toString’ of null at execSyncWithEnv (C:\Users\Administrator\AppData\Roaming\npm-cache_npx\1196\node_modules\deploy-node-app\src\util.js:151:55) at ensureBinaries (C:\Users\Administrator\AppData\Roaming\npm-cache_npx\1196\node_modules\deploy-node-app\src\util.js:164:24) at DeployNodeApp (C:\Users\Administrator\AppData\Roaming\npm-cache_npx\1196\node_modules\deploy-node-app\src\deployNodeApp.js:509:30) at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm-cache_npx\1196\node_modules\deploy-node-app\src\index.js:38:1) at Module._compile (internal/modules/cjs/loader.js:1147:30) at Object.Module._extensions…js (internal/modules/cjs/loader.js:1167:10) at Module.load (internal/modules/cjs/loader.js:996:32) at Function.Module._load (internal/modules/cjs/loader.js:896:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at C:\Program Files\nodejs\node_modules\npm\node_modules\libnpx\index.js:268:14 (node:1196) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:1196) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (6 by maintainers)
Top GitHub Comments
Hey @mboveiri - Thanks!! I’ve published
deploy-node-app@2.0.13
(alsodeploy-node-app@next
) which should now properly figure out the path tosh
on many different systems!Thanks again for your help - hoping this version works for you - DNA2.0 is a work-in-progress, and it powers our repo builder at https://kubesail.com - so its slated to get lots and lots of love in the next few months! Please let us know if you run into any other issues!
Thank you it’s work properly now, hope I was able to help the progress. interest to new version and features.