You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to deploy this service as a webapp. I tried NodeJs, Python and Docker Desktop.
The preferred method for interaction would be Node to use the WebApp edition if possible. Any help with this would be greatly appreciated, happy to talk it over on Discord as well, very interested in getting this working.
Here are the results respectively:
NodeJs:
Command: npm ci
output:
node.exe : npm error code EBADPLATFORM
At C:\Program Files\nodejs\npm.ps1:29 char:3
+ & $NODE_EXE $NPM_CLI_JS $args
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (npm error code EBADPLATFORM:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
npm error notsup Unsupported platform for [email protected]: wanted {"os":"!win32"} (current: {"os":"win32"})
npm error notsup Valid os: !win32
npm error notsup Actual os: win32
npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2025-01-10T18_39_26_608Z-debug-0.log
Command: npm start
output:
node.exe : node:internal/modules/package_json_reader:267
At C:\Program Files\nodejs\npm.ps1:29 char:3
+ & $NODE_EXE $NPM_CLI_JS $args
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (node:internal/m...json_reader:267:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'yargs' imported from C:\Users\Administrator\Documents\GitHub\social-analyzer-main\app.js
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:267:9)
at packageResolve (node:internal/modules/esm/resolve:768:81)
at moduleResolve (node:internal/modules/esm/resolve:854:18)
at defaultResolve (node:internal/modules/esm/resolve:984:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:716:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:640:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:623:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:276:38)
at ModuleJob._link (node:internal/modules/esm/module_job:136:49) {
code: 'ERR_MODULE_NOT_FOUND'
}
Node.js v23.6.0
python : Some characters could not be decoded, and were replaced with REPLACEMENT CHARACTER.
At line:1 char:1
+ python -m social-analyzer --username "JohnDoe" --metadata
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Some characters...MENT CHARACTER.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Some characters could not be decoded, and were replaced with REPLACEMENT CHARACTER.
Some characters could not be decoded, and were replaced with REPLACEMENT CHARACTER.
Some characters could not be decoded, and were replaced with REPLACEMENT CHARACTER.
Docker Desktop Terminal:
Commands :
cd "C:\Path\To\social-analyzer-main"
docker build -t social-analyzer .
docker run -p 9005:9005 -it social-analyzer
Output:
PS C:\Users\Administrator\Documents\GitHub\social-analyzer-main> docker build -t social-analyzer . docker run -p 9005:9005 -it social-analyzer
unknown shorthand flag: 'p' in -p
See 'docker buildx build --help'.
PS C:\Users\Administrator\Documents\GitHub\social-analyzer-main> docker build -t social-analyzer .; docker run -p 9005:9005 -it social-analyzer
[+] Building 25.6s (10/10) FINISHED docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 271B 0.0s
=> [internal] load metadata for docker.io/library/node:14.15.3-alpine3.12 1.2s
=> [auth] library/node:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 83B 0.0s
=> [1/4] FROM docker.io/library/node:14.15.3-alpine3.12@sha256:3fcd65a94320827a74eacd80da24a190f2c3e65 2.8s
=> => resolve docker.io/library/node:14.15.3-alpine3.12@sha256:3fcd65a94320827a74eacd80da24a190f2c3e65 0.0s
=> => sha256:3fcd65a94320827a74eacd80da24a190f2c3e65ce0f66e4fe7764629f11afde3 1.43kB / 1.43kB 0.0s
=> => sha256:db383f8332e0d50467ce9b9ca0b462dcb413d9c99abf18c15e29d4b584ba8996 1.16kB / 1.16kB 0.0s
=> => sha256:46c3eb6e27e941661ea2f06a323e4518336d5c3fac593f03717a86c182fa0775 6.73kB / 6.73kB 0.0s
=> => sha256:801bfaa63ef2094d770c809815b9e2b9c1194728e5e754ef7bc764030e140cea 2.80MB / 2.80MB 0.2s
=> => sha256:68b982bd1bfcab92afe3e1162f83bb152a8a0be10aacc00aa44ea29e8864970b 2.36MB / 2.36MB 0.4s
=> => sha256:10e8f660b8bcf94aa7591ec462869157b2e1734485fcc3a42e135a53c8d06bb5 35.87MB / 35.87MB 1.2s
=> => extracting sha256:801bfaa63ef2094d770c809815b9e2b9c1194728e5e754ef7bc764030e140cea 0.1s
=> => sha256:d15bdb5ba212ee322c0b5249f173e5be7dbb2d47ad35bd29ccfcfccc8cdca531 282B / 282B 0.4s
=> => extracting sha256:10e8f660b8bcf94aa7591ec462869157b2e1734485fcc3a42e135a53c8d06bb5 1.3s
=> => extracting sha256:68b982bd1bfcab92afe3e1162f83bb152a8a0be10aacc00aa44ea29e8864970b 0.1s
=> => extracting sha256:d15bdb5ba212ee322c0b5249f173e5be7dbb2d47ad35bd29ccfcfccc8cdca531 0.0s
=> [internal] load build context 0.2s
=> => transferring context: 3.52MB 0.1s
=> [2/4] WORKDIR /usr/src/app 0.5s
=> [3/4] COPY . . 0.1s
=> [4/4] RUN apk update && apk add --no-cache firefox-esr && npm install lodash && npm install 19.5s
=> exporting to image 1.4s
=> => exporting layers 1.4s
=> => writing image sha256:096e932caddf779486179c30f5d5f4cababeec9e22eec8337775de46c0dd727f 0.0s
=> => naming to docker.io/library/social-analyzer 0.0s
View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/lotailswc4223cy7gdyvzk52t
What's next:
View a summary of image vulnerabilities and recommendations → docker scout quickview
> [email protected] start /usr/src/app
> node app.js --gui "--docker"
file:///usr/src/app/modules/helper.js:67
import cheerio from 'cheerio'
^^^^^^^
SyntaxError: The requested module 'cheerio' does not provide an export named 'default'
at ModuleJob._instantiate (internal/modules/esm/module_job.js:104:21)
at async ModuleJob.run (internal/modules/esm/module_job.js:149:5)
at async Loader.import (internal/modules/esm/loader.js:166:24)
at async Object.loadESM (internal/process/esm_loader.js:68:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node app.js --gui "--docker"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2025-01-10T18_31_03_822Z-debug.log
The text was updated successfully, but these errors were encountered:
Hello,
I am attempting to deploy this service as a webapp. I tried NodeJs, Python and Docker Desktop.
The preferred method for interaction would be Node to use the WebApp edition if possible. Any help with this would be greatly appreciated, happy to talk it over on Discord as well, very interested in getting this working.
Here are the results respectively:
NodeJs:
Command: npm ci
output:
Command: npm start
output:
Python:
Command : python -m social-analyzer --username "JohnDoe" --metadata
Output:
Docker Desktop Terminal:
Commands :
cd "C:\Path\To\social-analyzer-main"
docker build -t social-analyzer .
docker run -p 9005:9005 -it social-analyzer
Output:
The text was updated successfully, but these errors were encountered: