onlyotdn commented on PR #2852: URL: https://github.com/apache/incubator-streampark/pull/2852#issuecomment-1635696668
> > > > > > > > > mac > > ``` > > ➜ streampark-console-webapp git:(dev) npm run build > > > > > [email protected] build > > > cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 pnpm vite build > > > > node:events:491 > > throw er; // Unhandled 'error' event > > ^ > > > > Error: spawn pnpm ENOENT > > at ChildProcess._handle.onexit (node:internal/child_process:283:19) > > at onErrorNT (node:internal/child_process:476:16) > > at process.processTicksAndRejections (node:internal/process/task_queues:82:21) > > Emitted 'error' event on ChildProcess instance at: > > at ChildProcess._handle.onexit (node:internal/child_process:289:12) > > at onErrorNT (node:internal/child_process:476:16) > > at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { > > errno: -2, > > code: 'ENOENT', > > syscall: 'spawn pnpm', > > path: 'pnpm', > > spawnargs: [ 'vite', 'build' ] > > } > > > > Node.js v18.9.0 > > ``` > > Go to the webapp directory and edit the package.json file. > > Modify the build command under scripts > > ```json > "build": "vite build", > ``` > > then run `npm run build` It works , thanks. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
