mermaidjs/mermaid-live-editor

`yarn install` fails with what looks like a local dependency

Opened this issue ยท 3 comments

http://pacman01.inkclub.local looks like local address

~/gitrepos/mermaid-live-editor ๎‚ฐ ๎‚  master ๎‚ฐ yarn install
yarn install v1.19.1
[1/4] ๐Ÿ”  Resolving packages...
[2/4] ๐Ÿšš  Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "http://pacman01.inkclub.local:4873/mermaid/-/mermaid-8.4.2.tgz: getaddrinfo ENOTFOUND pacman01.inkclub.local".
info If you think this is a bug, please open a bug report with the information provided in "/Users/matt/gitrepos/mermaid-live-editor/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
yarn install  16.00s user 13.81s system 61% cpu 48.828 total

I was able to make it work by deleting yarn.lock and yarn.locker and re-running yarn install.

I was able to make it work by deleting yarn.lock and yarn.locker and re-running yarn install.

This worked for me. I was trying to run podman build before installing dependencies. I didn't look at git but I suspect that could have caused the issue.

I've got this same error. I tried removing yarn.lock and yarn.locker, but I get an error while deasync tries to build

error /path/to/mermaidjs/mermaid-live-editor/node_modules/deasync: Command failed.
Exit code: 1
Command: node ./build.js
Arguments:
Directory: /path/to/mermaidjs/mermaid-live-editor/node_modules/deasync
Output:
node:events:492
      throw er; // Unhandled 'error' event
      ^

Error: spawn node-gyp ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484: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:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn node-gyp',
  path: 'node-gyp',
  spawnargs: [ 'rebuild' ]

Could this be because of my node version? I'm on Node.js v20.8.1