Hello, I’m attempting to use nvm to set the version of nodejs to 14.1.0.
$ nix-shell https://holochain.love :(
[nix-shell:~/work/cogov/cogov-dev]$ nvm use
Found '/home/brian/work/cogov/cogov-dev/.nvmrc' with version <14.1.0>
nvm is not compatible with the npm config "prefix" option: currently set to "/nix/store/kkyjkmxbzcfc844mrwpiwhdqkp9wnn02-nodejs-12.13.0"
Run `npm config delete prefix` or `nvm use --delete-prefix v14.1.0` to unset it.
Is there a way to have nix-shell call npm config delete prefix
. I tried using:
$ nix-shell --command "npm config delete prefix && nvm use" https://holochain.love
Found '/home/brian/work/cogov/cogov-dev/.nvmrc' with version <14.1.0>
nvm is not compatible with the npm config "prefix" option: currently set to "/nix/store/kkyjkmxbzcfc844mrwpiwhdqkp9wnn02-nodejs-12.13.0"
Run `npm config delete prefix` or `nvm use --delete-prefix v14.1.0` to unset it.
nix-shell --command "npm config delete prefix && nvm use" 5.14s user 0.62s system 103% cpu 5.554 total
It also looks like nix-shell --command
does not instantiate the nix-shell cli, but runs the command, similar to --run
.