Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mattburns opened this issue Jul 20, 2020 · 3 comments
Open

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

mattburns opened this issue Jul 20, 2020 · 3 comments

Comments

@mattburns
Copy link

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
Copy link

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

@devoNOTbevo
Copy link

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
Copy link

igbanam commented Oct 19, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants