Skip to content

Build / Setup Issues #1

@adamdecaf

Description

@adamdecaf

I've had a few errors when trying to build/run hash-command locally.

$ npm run build

> hash-command@0.0.0 build
> cd hash-command-ui && npm run build && cd ../hash-command-server && npm run build


> hash-command-ui@0.0.0 build
> ng build

sh: ng: command not found

I had to install angular's cli package.

npm install -g @angular/cli

Then building and starting hash-command failed.

$ npm run build              

> hash-command@0.0.0 build
> cd hash-command-ui && npm run build && cd ../hash-command-server && npm run build


> hash-command-ui@0.0.0 build
> ng build

Node.js version v23.9.0 detected.
Odd numbered Node.js versions will not enter LTS status and should not be used for production. For more information, please see https://nodejs.org/en/about/previous-releases/.
Node packages may not be installed. Try installing with 'npm install'.
Error: Could not find the '@angular-devkit/build-angular:application' builder's node package.
$  npm run start              

> hash-command@0.0.0 start
> electron-forge start

✔ Checking your system
✔ Locating application
✔ Loading configuration
✔ Preparing native dependencies [0.7s]
✔ Running generateAssets hook
✔ Running preStart hook

12:27:43.357 › (node:26423) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of null (reading 'on')
    at /Users/adam/code/src/github.com/bitaxeorg/hash-command/main.js:138:28
(Use `Electron --trace-warnings ...` to show where the warning was created)
12:27:43.362 › (node:26423) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
node:internal/modules/esm/resolve:279
    throw new ERR_MODULE_NOT_FOUND(
          ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/adam/code/src/github.com/bitaxeorg/hash-command/hash-command-server/dist/src/main.js' imported from /Users/adam/code/src/github.com/bitaxeorg/hash-command/
    at finalizeResolution (node:internal/modules/esm/resolve:279:11)
    at moduleResolve (node:internal/modules/esm/resolve:870:10)
    at defaultResolve (node:internal/modules/esm/resolve:994:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:685:12)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:634:25)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:617:38)
    at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:273:38)
    at onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:577:36)
    at TracingChannel.tracePromise (node:diagnostics_channel:344:14)
    at ModuleLoader.import (node:internal/modules/esm/loader:576:21) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///Users/adam/code/src/github.com/bitaxeorg/hash-command/hash-command-server/dist/src/main.js'
}

Node.js v22.14.0
12:27:46.825 › (node:26423) electron: Failed to load URL: file:///Users/adam/code/src/github.com/bitaxeorg/hash-command/hash-command-ui/dist/hash-command/browser/index.html with error: ERR_FILE_NOT_FOUND
[26423:0512/122747.231538:ERROR:CONSOLE(1)] "Request Autofill.enable failed. {"code":-32601,"message":"'Autofill.enable' wasn't found"}", source: devtools://devtools/bundled/core/protocol_client/protocol_client.js (1)
[26423:0512/122747.231633:ERROR:CONSOLE(1)] "Request Autofill.setAddresses failed. {"code":-32601,"message":"'Autofill.setAddresses' wasn't found"}", source: devtools://devtools/bundled/core/protocol_client/protocol_client.js (1)

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