Skip to content

sudo run build fails #9

@jocon-grmtx

Description

@jocon-grmtx

I am trying to follow the instructions to deploy neoConverse locally on my wsl2 ubuntu, but get the issue below after multiple tries. I've tried many things - updated wsl, ubuntu, tried the dev branch, upgraded node.js. No matter what, always this issue. Can anyone please assist - give me some hints? I've even tried deploying on a separate wsl 2 machine. Same. Thanks, John

`neoconverse[deploy-branch !]$ sudo npm run build

@1.0.0 build /home/jac/projects/neoconverse
next build

/home/jac/projects/neoconverse/node_modules/next/dist/lib/picocolors.js:134
const { env, stdout } = ((_globalThis = globalThis) == null ? void 0 : _globalThis.process) ?? {};
^

SyntaxError: Unexpected token ?
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at Module.mod.require (/home/jac/projects/neoconverse/node_modules/next/dist/server/require-hook.js:64:28)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/home/jac/projects/neoconverse/node_modules/next/dist/build/output/log.js:55:21)
at Module._compile (internal/modules/cjs/loader.js:778:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @1.0.0 build: next build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @1.0.0 build 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-03-19T18_31_14_315Z-debug.log
neoconverse[deploy-branch !]$ node -v
v22.14.0
neoconverse[deploy-branch !]$ npm -v
11.2.0`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions