Skip to content

Conversation

@pdcastro
Copy link
Contributor

@pdcastro pdcastro commented Apr 15, 2020

is-installed-globally version 0.3.2 fixed the ENOENT issue:

The CLI's npm-shrinkwrap.json file has two occurrences of affected is-installed-globally dependency:

    "is-installed-globally": {
      "version": "0.3.1",
...
        "is-installed-globally": {
          "version": "0.1.0",

This PR updates the first one, but leaves is-installed-globally v0.1.0 alone: there is a net of dependencies that I couldn't untangle. Even so, strictly this PR resolves issue #1723 because that issue qualified the problem as "when running cli commands", and the v0.1.0 dependency only applies when running patch-package in the postinstall npm script. patch-package v6.2.1 resolves the problem by removing the dependency altogether, but we cannot upgrade from patch-package 6.1 to 6.2 because of issue ds300/patch-package/issues/201. I created PR ds300/patch-package/pull/224 in their repo, which hopefully would allow us to upgrade patch-package. Meanwhile, this PR should alleviate the problem.

Change-type: patch
Resolves: #1723

@pdcastro pdcastro marked this pull request as ready for review April 15, 2020 19:39
@pdcastro pdcastro merged commit 7e4b62c into master Apr 16, 2020
@pdcastro pdcastro deleted the 1723-update-is-installed-globally branch April 16, 2020 00:37
@leonardodino
Copy link

note: [email protected] doesn't causes ENOENT issues.

the possibility for this issue was introduced in 0.2.0, and fixed in 0.3.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

Successfully merging this pull request may close these issues.

Error: ENOENT: no such file or directory, lstat '/usr/local/lib/balena-cli/lib' when running cli commands

4 participants