Ich teste die neue Bash auf Ubuntu auf Windows 10 und das erste, was ich zu tun versuchte, ist Knoten zu installieren. Natürlich, da ich jetzt ein "Linux-System" habe, ging ich weiter und installierte nvm.Installation von nvm auf Bash auf Ubunutu auf Windows 10 wirft Fehler
Ich hatte auch zu
apt-get make gcc g++
One getan, was ich
versuchtnvm install v4.4.2
aber ich habe:
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/root/.nvm/src/node-v4.4.2/out'
g++ -pthread -rdynamic -m64 -fuse-ld=gold -B/root/.nvm/src/node-
v4.4.2/third_party/binutils/Linux_x64/Release/bin -m64 -o /root/.nvm/src/node-v4.4.2/out/Release/mksnapshot -Wl,--start-group /root/.nvm/src/node-v4.4.2/out/Release/obj.target/mksnapshot/deps/v8/src/snapshot/mksnapshot.o /root/.nvm/src/node-v4.4.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a /root/.nvm/src/node-v4.4.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a /root/.nvm/src/node-v4.4.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_libplatform.a /root/.nvm/src/node-v4.4.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_libbase.a -Wl,--end-group -ldl -lrt
/usr/bin/ld.gold: fatal error: /root/.nvm/src/node-v4.4.2/out/Release/mksnapshot: Invalid argument
collect2: error: ld returned 1 exit status
make[1]: *** [/root/.nvm/src/node-v4.4.2/out/Release/mksnapshot] Error 1
make[1]: Leaving directory `/root/.nvm/src/node-v4.4.2/out'
make: *** [node] Error 2
nvm: install v4.4.2 failed!
Sie wissen, was das verursacht? Ich denke, dass ich vielleicht etwas falsch konfiguriert auf dem Make-Befehl habe?
Hinweis: Die Installation Knoten den "offiziellen Weg" funktioniert mit, das heißt:
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs