I downloaded NodeJS from the official website as a tarball and extracted it but I can't install it. The BULDING.md file says I should
./configure
then
make -j4
However, trying ./configure inside the directory returns this error:
bash: ./configure: No such file or directory
I solved this error (see the comments), but now after running make -j4 I get this error:
node bin/npm-cli.js install marked --no-global --no-timing --no-save
node bin/npm-cli.js install marked-man --no-global --no-timing --no-save
bash: node: command not found
bash: node: command not found
Makefile:154: recipe for target 'node_modules/.bin/marked' failed
make: *** [node_modules/.bin/marked] Error 127
make: *** Waiting for unfinished jobs....
Makefile:159: recipe for target 'node_modules/.bin/marked-man' failed
make: *** [node_modules/.bin/marked-man] Error 127
yet I have all dependencies (git, python, g++ and make). What am I missing here?
Note: I know I could install it using apt but I want to use this as part of learning.
./configureand 2.make -j4The first command in your question is.configurewhich is wrong. It should be./configure– karel May 21 '18 at 13:33building.mdfile is the one I was callingreadmefile but those are the exact same instructions that I followed. Running./configuregives the above error. – Samuel May 21 '18 at 13:36cdto the directory containing the configure file (so that bash can find it) before running the./configurecommand. – karel May 21 '18 at 13:42./configureandmake -j4inside this directory? the latter command returns a couple of errors. – Samuel May 21 '18 at 13:44