You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
grep: Desktop: Is a directory
grep: Downloads: Is a directory
...etc
This also happens on TTY, with no graphical server running at all.
If I open a terminal in specific directories (in this occurrence an Electron project), I get additional weirdness:
grep: node_modules: Is a directory
grep: out: Is a directory
grep: src: Is a directory
grep: static: Is a directory
(eval):1: command not found: forge.config.js
nvm is not compatible with the "README.md:- [`forge.config.js`](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)" environment variable: currently set to ".md:- [](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)"
Run `unset README.md:- [\`forge.config.js\`](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)` to unset it.
Of course, the sentence
- [`forge.config.js`](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)
is part of my README.md and describes the project's architecture.
The string forge.config.js only exists in the README.md and as a config key in `package.json.
> grep -R "forge.config.js" --exclude-dir node_modules
package.json: "forge": "./forge.config.js"
README.md:- [`forge.config.js`](./forge.config.js): decides which packages are used by Electron Forge. In particular, it sets the exporters (Windows, Mac, Linux, ...)
If I remove that sentence from the README, then nvm tells me this:
nvm is not compatible with the "package.json: "forge": "./forge.config.js"" environment variable: currently set to ".json: forge: ./forge.config.js"
If I remove that, then I am back to the more "normal" error, which tells me grep: <x>: Is a directory.
Removing only the line in package.json isn't sufficient, however, I have to remove it from the README.md too.
So nvm is deciding on its own to... parse the README.md, extract some specific string for some reason, then eval it? Then decide that there's an environment variable equal to the whole line?
Notice the environment variable's name starts with README.md: ... but it's value is set to .md: ...
I can confirm these issues come from the interaction of nvm and zsh, because:
if I do not source nvm.sh, and/or
if I use bash
I don't get any of these lines.
Apart for these annoying notices, nvm is working as expected, as far as I can tell.
I had seen that other issue, but no one mentions parsing a markdown file and extracting env variables from there, so I'm thinking my issue might be two issues. Are you sure it's a duplicate?
Operating system and version:
Arch Linux
nvm debug
output:nvm ls
output:How did you install
nvm
?Using the Arch package
What it does is put the completion, binaries, and so on in the right place. You can see the script for it here
After that, I added
source /usr/share/nvm/init-nvm.sh
to my.zshrc
.This script is just:
What steps did you perform?
I updated the package
What happened?
When I open a terminal, I get:
This also happens on TTY, with no graphical server running at all.
If I open a terminal in specific directories (in this occurrence an Electron project), I get additional weirdness:
Of course, the sentence
is part of my
README.md
and describes the project's architecture.The string
forge.config.js
only exists in the README.md and as aconfig
key in `package.json.If I remove that sentence from the README, then nvm tells me this:
If I remove that, then I am back to the more "normal" error, which tells me
grep: <x>: Is a directory
.Removing only the line in
package.json
isn't sufficient, however, I have to remove it from the README.md too.So nvm is deciding on its own to... parse the README.md, extract some specific string for some reason, then eval it? Then decide that there's an environment variable equal to the whole line?
Notice the environment variable's name starts with
README.md: ...
but it's value is set to.md: ...
I can confirm these issues come from the interaction of nvm and zsh, because:
nvm.sh
, and/orbash
I don't get any of these lines.
Apart for these annoying notices, nvm is working as expected, as far as I can tell.
I posted this first in #855
What did you expect to happen?
No output in my terminal
Is there anything in any of your profile files that modifies the
PATH
?I use Zimfw, but I otherwise don't do anything specific.
The text was updated successfully, but these errors were encountered: