Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Just to be thorough, I’ll dump every minimal step I did to encounter this problem:
doctl serverless init --language js sandbox4doctl serverless deploy sandbox4cd sandbox4/packages/sample/hellonpm init -y (generate a package.json for the function package)npm install --package-lock-only mongodbcd ../../../..doctl serverless deploy sandbox4Deploying '/home/j/doctl/sandbox4'
to namespace 'fn-52e42936-046c-46fb-bf57-2cd06f2ddbe2'
on host 'https://faas-ams3-2a2df116.doserverless.co'
Started running npm install --production in /home/j/doctl/sandbox4/sample/hello
Output of failed build in /home/j/doctl/sandbox4/packages/sample/hello
/bin/bash: npm: command not found
Failures:
Error: While deploying action 'sample/hello': 'npm install' exited with code 127
I have so many questions:
nodejs:default)Currently it looks like this:
➜ doctl tree sandbox4 -a
sandbox4
├── .deployed
│ └── versions.json
├── .gitignore
├── packages
│ └── sample
│ └── hello
│ ├── hello.js
│ ├── package.json
│ └── package-lock.json
└── project.yml
4 directories, 6 files
➜ doctl
and the only content that should look any different from the auto-generated sample files is the package.json (and its lock file), it looks like this:
➜ doctl cat sandbox4/packages/sample/hello/package.json
{
"dependencies": {
"mongodb": "^4.7.0"
}
}
Rory McEwan
Anjanesh Lekshminarayanan
182d09356ab94d3893ddfaca4f0270
Prashant Kumbhat
kprichard
e452769e8f30404d81a3bc803143f4
robert
Eleanor
GamesmenJordan