Installing Node.js ./configure make sudo make install - javascript

I am currently trying to download node.js. I have downloaded everything and am now at the part where I enter the console commands.
What I am entering:
cd node
./configure
make
after entering ./configure, i get this error
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer director /Library/Developer/CommandLineTools' is a command line tools instance`
I'm not sure what this means. After entering make, i then get this repeated in a infinite loop in the console
http://pastebin.com/YrDs2Afw

in general it's a good rule of thumb to provide a bit information about what you already tried and on what system you are - especially when you are having issues with installing something.
I'll just assume, that you're working on a Mac.
I would recommend to download and install XCode as Quentin already recommended.
You can find it in the AppStore.
Once that done, make sure to install the "Command Line Tools" within XCode.
Now you have several options:
- Install Homebrew and install NodeJS from there (google Homebrew if you don't know what it is)
- Download and execute the Node v0.10.26.pkg (current version as of writing this), which will take care of the installation for you.
Hope this helps

Related

Got an error trying to install mod_v8 for FreeSwitch 10 in Debian 11: You need to either install libv8-6.1-dev, ibv8fs-dev

On a "clean" Debian 11, I deployed all the necessary packages and began to build FreeSWITCH 10 with the mod_v8 module enabled.
When executing the ./configure command, I get the message:
checking for v8-6.1_static >= 6.1.298...
checking for v8fs_static >= 6.1.298...
checking for v8 >= 6.1.298...
configure: error: You need to either install **libv8-6.1-dev** (>= 6.1.298), **libv8fs-dev** (>= 6.1.298) or disable mod_v8 in modules.conf
There are no packages named libv8-6.1-dev and libv8fs-devlibv8fs-dev in Debian 11.
I was looking for packages in Debian 11 that contain v8, with the command search v8 and installed all the packages found that mention v8 and JavaScript:
libv8-dev libnode-dev libnode72 node-babel7-standalone node-clean-css node-get-caller-file node-nan node-to-fast-properties node-v8flags nodejs
I also installed libv8 packages which are mentioned here: https://lists.freeswitch.org/pipermail/freeswitch-users/2021-July/134874.html
But I still get the error message.
What packages do I need to install? Is there a command that will help me find the names of the necessary packages that contain: libv8-6.1-dev (>= 6.1.298), libv8fs-dev (>= 6.1.298)?
The procedure for installing mod_v8 on Debian 11.
Download and install deb packages from here (registration required):
https://freeswitch.signalwire.com/repo/deb/freeswitch-1.8/pool/main/libv/
Install the downloaded packages with the command:
sudo apt install -y ./package_name.deb
List of packages (some may not install):
libv8-6.1_6.1.298-1_bullseye_amd64.deb
libv8-6.1_6.1.298-1_buster_amd64.deb
libv8-6.1_6.1.298-1_stretch_amd64.deb
libv8-6.1-dbg_6.1.298-1_bullseye_amd64.deb
libv8-6.1-dbg_6.1.298-1_buster_amd64.deb
libv8-6.1-dbg_6.1.298-1_stretch_amd64.deb
libv8-6.1-dev_6.1.298-1_bullseye_amd64.deb
libv8-6.1-dev_6.1.298-1_buster_amd64.deb
libv8-6.1-dev_6.1.298-1_stretch_amd64.deb
libv8fs-6.1_6.1.298-1_stretch_amd64.deb
libv8fs-6.1-dbg_6.1.298-1_stretch_amd64.deb
libv8fs-6.1-dev_6.1.298-1_stretch_amd64.deb
If FreeSWITCH is already installed, then you need to uncomment along the path:
/usr/local/freeswitch/conf/autoload_configs
in the file:
modules.conf.xml
line:
load module="mod_v8"
Then install only mod_v8 via (run from the FreeSWITCH build folder): make mod_v8-install
If FREESWITCH not installed, then enable mod_v8 in the modules.conf file in the freeswitch (or freeswitch-master) folder from which the build will be made.
Finally, in the FreeSWITCH console, run the load mod_v8 command (the answer must be True).
Did you try install from the website?
https://packages.debian.org/stretch/libv8-dev
There is a download link
The mailing list conversation you linked also contains this snippet:
You should try building libv8 packages from here: https://github.com/freeswitch/libv8-packaging
I'd try that.
It doesn't look like Debian has ever had an official libv8-6.1-dev package, or at least I can't find any traces of it. It definitely doesn't offer one now.
(The whole thing does seem a bit sketchy; that build script uses V8 6.1.298, which is a random daily snapshot from mid-2017; but hey, as long as it never touches possibly-attacker-controlled scripts or input data, I guess it's fine... who needs production-quality releases in their production setups, eh?
You could try to at least switch to the tip of the stabilized 6.1 branch, which would be the 6.1.534.44 tag (a.k.a. branch-heads/6.1), but (1) that also hasn't received any further fixes for five years now, and (2) if you're already having trouble getting things to work, then any deviation from workflows that are said to have worked before only increases the risk of further trouble.)

Terminal stops running commands after switching Node's version with nvm

Hope to find you guys well =).
So, my problem is that I'm trying to initialize a Gatsby project and after some trouble I discovered that for some boiler plate "starter" template to work I would have to install an older version of Node. Since I already have nvm installed, I just downloaded the version I wanted and switched via terminal.
I verified it with node -v and it threw me the version I wanted. The thing is that when I try to run 'gatsby develop' it says "gatsby: command not found".
And that if I close and open my terminal again it resets the version. Is this supposed to behave like that?
By the way, you can already tell that I'm new at this so any information or guidelines will be of extreme helpfulness.
You can try doing yarn develop if using yarn. Or npx develop if using npx

I have a problem with npm package nexe and visual studio, trying to convert a nodejs app in an .exe

nexe is a npm package to convert nodejs apps to an .exe, but I have a problem when I run
nexe --build index.js
so I add --verbose and this is the message:
the message said: failed to find a suitable Visual studio installation and also vcbuild.bat nosign release x64 exited with code: 1
My question is:
is it mandatory to have visual studio installed? I read that "desktop development with c++" is necessary to make the .exe in windows. BUT:
I make this question because my internet connection is so bad, and the visual studio installation will take me 4 or 5 days, because it's a little bit more of 7gb. Is there a lighter alternative that has the necessary packages?
NOTE: I make this question here in stackoverflow because I open a issue in the nexe github repo and nobody answered me. So i hope someone tried that package and if they got the same error tell me what they did to fix it
NOTE 2: I also tried pkg for vercel, but also have problems making an .exe
As described here (gitanswer.com) this is indeed necessary for making nexe finally work. In my case it was the solution.
I installed VS 2022 and added the marked workload additionally.
I ran nexe-4.0.0-beta-19 on Windows.
First I had to install NSAM from here (nasm.us) and Python (3.10 using chocolatey in my case).

Can't get Grunt to run

I'm a little confused as to why I can't get my Gruntfile.js to run, here's the rub:
I installed grunt globally using npm. It lives in my /usr/local/bin/ directory, here it is:
Previously, I'd installed node.js using homebrew, then grunt with npm. Other issues led me to uninstall node via homebrew & reinstall node directly from the disk image node provides.
In my web project's index, there's a Gruntfile.js script that rebuilds my jekyll site everytime live-reload updates. When I run grunt, I get this message:
What I'm trying to wrap my head around:
Why isn't /usr/local/bin/grunt a valid path? Grunt exists at that location. My guess was that running grunt locally, from within my website's index, would fix things.
There's a node_modules folder there & everything was working fine before after all. I found this link, and tried running \grunt to bypass the bash alias, but that had no effect.
Any advice/suggestions are much appreciated! I feel like an imbecile using things, breaking things & not understanding why/how. Eager to finish my project, get a paycheck & finally have time to learn the ins and outs of terminal, bash & popular package managers so I don't run into these sorts of problems...
After discussion with OP, I find this is a Node.js environment issue. After install - do something - uninstall - reinstall in another way - do something, somehow, when npm install -g XXX is executed, the symbolic link is created and point to some place, but the package is installed some where else. That's why OP see /usr/local/bin/grunt but cannot run it.
I've recommended OP to clean up all Node.js stuff, make a clean environment and start right from the beginning.

troubleshooting d3.js installation 'Let's Make a Map' tutorial

I am trying to begin Mike Bostock's "Let's Make A Map" tutorial but am running into basic installation issues upfront. I am running this on Windows 8.1. This is the part:
"Next you’ll need the reference implementation for TopoJSON, which requires Node.js. (You can install Node via Homebrew, but the official installers work just as well.) After installing Node, run the following to install TopoJSON:
npm install -g topojson
And to verify the two installations, try:
which ogr2ogr
which topojson"
I installed node.js and figured out that I have to run the 'npm install -g topojson' command in cmd.exe. and not node.js, but I am having trouble with the 'which' commands and those following it. When I type the
which ogr2ogr
in my cmd.exe, it says 'which is not recognized as an internal or external command' and when I type it in node.js it says "Syntax error; unexpected identifier"
Help?
which is a unix command that shows you where something is located on your filesystem.
You can check on windows if you have that command by just running ogr2ogr and see if it complains that the command exists or not
I don't know if you are German, but I created a German tutorial about installing topoJSON under Windows: TopoJSON unter Windows Maybe this helps.
And for sure you cannot use which under Windows. I also have many pictures in the tutorial if you are not German.

Categories

Resources