Closed SebastianMG92 closed 4 years ago
The npm-global dir will break with nvm; global modules cant be shared across node versions.
If you comment that out, what is the full output of nvm use node
?
Ok, I commented the npm-global line
# export PATH="~/.npm-global/bin:$PATH"
But the result is the same
nvm: install v12.18.2 failed!
nvm use v12.18.2
N/A: version "v12.18.2 -> N/A" is not yet installed.
You need to run "nvm install v12.18.2" to install it before using it.
By the way, the process takes a long time and show me multiple lines like this
g++ -o /home/smarin/.nvm/.cache/src/node-v12.18.2/files/out/Release/obj.target/libnode/src/stream_wrap.o ../src/stream_wrap.cc '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="linux"' '-DNODE_WANT_INTERNALS=1' '-DV8_DEPRECATION_WARNINGS=1' '-DNODE_OPENSSL_SYSTEM_CERT_PATH=""' '-DHAVE_INSPECTOR=1' '-DNODE_ENABLE_LARGE_CODE_PAGES=1' '-D__POSIX__' '-DNODE_USE_V8_PLATFORM=1' '-DNODE_HAVE_I18N_SUPPORT=1' '-DNODE_HAVE_SMALL_ICU=1' '-DHAVE_OPENSSL=1' '-DUCONFIG_NO_SERVICE=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=1' '-DUCONFIG_NO_BREAK_ITERATION=0' '-DHTTP_PARSER_STRICT=0' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-D_POSIX_C_SOURCE=200112' '-DNGHTTP2_STATICLIB' -I../src -I/home/smarin/.nvm/.cache/src/node-v12.18.2/files/out/Release/obj/gen -I/home/smarin/.nvm/.cache/src/node-v12.18.2/files/out/Release/obj/gen/include -I/home/smarin/.nvm/.cache/src/node-v12.18.2/files/out/Release/obj/gen/src -I../deps/histogram/src -I../deps/uvwasi/include -I../deps/v8/include -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common -I../deps/zlib -I../deps/http_parser -I../deps/llhttp/include -I../deps/cares/include -I../deps/uv/include -I../deps/nghttp2/lib/includes -I../deps/brotli/c/include -I../deps/openssl/openssl/include -Wall -Wextra -Wno-unused-parameter -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -MMD -MF /home/smarin/.nvm/.cache/src/node-v12.18.2/files/out/Release/.deps//home/smarin/.nvm/.cache/src/node-v12.18.2/files/out/Release/obj.target/libnode/src/stream_wrap.o.d.raw -c
And the .nvm/versions folder, each version only have 3 files
LICENSE CHANGELOG.md README.md
ah, hmm - that suggests it's compiling the node installation, and also that it's failing to do that.
First, run nvm uninstall node
until you have no versions installed. Then, run nvm cache clear
.
Then, please provide the full output of nvm install node
.
Ok, I'ts done,
Before that I delete all the versions folders, then I run nvm cache clear
and the end run nvm install --lts
. This process solved my problem.
Thank you very much for your support Jordan.
Glad to hear it! Please let me know if it happens again.
Operating system and version:
Windows 10 - WSL Ubuntu 18.04
nvm debug
output:nvm ls
output:What happened?
When I tried install any version of node at the end of the process it show
What did you expect to happen?
Then when I tried to set "nvm use v8.0.0" show this
Is there anything in any of your profile files that modifies the
PATH
?My .zshrc file: