Skip to content

Deploy of node.js express + mongodb app failing #61

@babvin

Description

@babvin

npx deploy-node-app -f

? What is the container image name for our project? To use docker hub, try username/project-name. Note: Make sure this is marked private, or it may be automatically created as a public image! babvin/writersadda

/home/vinay/.npm/_npx/b1f1036aac97e0d1/node_modules/deploy-node-app/src/languages/nodejs.js:33
if (!entrypoint.startsWith('npm') && !entrypoint.startsWith('node')) {
^

TypeError: Cannot read properties of undefined (reading 'startsWith')
at Object.entrypoint (/home/vinay/.npm/_npx/b1f1036aac97e0d1/node_modules/deploy-node-app/src/languages/nodejs.js:33:21)
at promptForEntrypoint (/home/vinay/.npm/_npx/b1f1036aac97e0d1/node_modules/deploy-node-app/src/deployNodeApp.js:101:63)
at generateArtifact (/home/vinay/.npm/_npx/b1f1036aac97e0d1/node_modules/deploy-node-app/src/deployNodeApp.js:625:56)
at async init (/home/vinay/.npm/_npx/b1f1036aac97e0d1/node_modules/deploy-node-app/src/deployNodeApp.js:759:17)
at async DeployNodeApp (/home/vinay/.npm/_npx/b1f1036aac97e0d1/node_modules/deploy-node-app/src/deployNodeApp.js:855:3)

Node.js v20.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions