mermaidjs / mermaid-live-editor

Location has moved to https://github.com/mermaid-js/mermaid-live-editor
https://mermaidjs.github.io/mermaid-live-editor/
MIT License
975 stars 181 forks source link

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

Open mattburns opened 3 years ago

mattburns commented 3 years ago

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
dugsmith commented 3 years ago

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

devoNOTbevo commented 11 months ago

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.

igbanam commented 8 months ago

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