How to change terminal to node in VS Code?(LInux mint) - node.js

I'm trying to use Vue in Linux, I installed NODEJS via a guide and when i check which version i have using node -v i get the current version which is 15.11.0
I can't change the terminal in VSCode from sh 5.1 to node to be able to run node commands and commands related to Vue,React native and etc...
I tried almost everything i found in the web including here
What can i do? attaching a image of the terminal:

Related

NodeJS not recognized under Windows 10

I am using the LTS version of NodeJS. The problem started with version node-v16.18.0-x64 and did continue with node-v18.12.0-x64.
What I am doing:
Developing Playwright test. I ran the test and NodeJS was working. After one minute, I rerun the test and NodeJS is no longer recognized in my OS.
The issue appears when I am using Cypress, so I think the issue is not related to the technology that I am using.
I checked the environment variable: It is there.
The workaround I am doing is to uninstall the NodeJS from the control panel and install it again. There is an option to repair the NodeJS installation. But when I try to use it, I receive an error message that the NodeJS is not installed on this OS.

In the linked question, what does the op talk about regarding installing node.js in the working directory?

I am a complete newbie to all this.
I tried to install node.js 4 times and then again uninstalled it every time trying different things, thinking one of them would work.
The link to the question is-Cannot find runtime 'node' on PATH - Visual Studio Code and Node.js
After I typed $node --version in powershell terminal in VSCode (after installing node.js in C drive, defaulting to all recommended options in the setup) I get an error. I have uploaded the image of the error.
the error
Please tell me how to get node.js working with VSCode.
To get the version of Node, just type node --version in the terminal without the "$".

Where to see list of programs installed via command prompt?

I am new to windows and recently installed angular with the following steps,
- 1> Downloaded and installed Node, -2> Used npm install -g angular/cli, via command prompt. My question here is - I could see Node.js in the list of installed programs in control panel, I am not seeing angular here. I referred to the PATH environment variable where I could see path for Node.js but no path was specified for angular. Where will I be able to see the programs installed via command prompt ?
I referred google and did thorough exploration of my windows system

VSCode with WSL - How to use Bash for the launch configurations?

I use Visual Studio Code to develop a TypeScript Node application on Windows 10, with WSL enabled.
Thanks to other threads, I'm almost able to run a VSCode task with Bash on Ubuntu on Windows.
But now I try to do the same with a launch configuration. How can I make a launch configuration to use the node executable installed in WSL instead of the one installed on Windows?
If I run this command directly in the integrated terminal, with Bash, it works :
node src/start.js
But when I press "[F5]" and start a launch configuration that runs this same file, I get an error : "Error: %1 is not a valid Win32 application". This is because the oracledb library is used and has been compiled in Bash, not in Windows.
How can I make a launch configuration use Bash to run Node?
UPDATE : I opened an issue about that on VSCode's GitHub page.
Not if sure you still need help.
open bash outside of the vs code.
then run the following command, to install node.
sudo apt install nodejs-legacy
and you should be able to run node with bash in vs code.

How to install Cloud9 with Node.js 0.6?

I'm looking for an offline free ide for node.js.
I was going to use cloud9, but it seems that doesn't work..
I followed this guide https://github.com/ajaxorg/cloud9
What could I use? Is there any way to use cloud9 with node.js 0.6?
The error of the last version of cloud9 of github: http://pastebin.com/7QEAygfD
FYI: Looks like Cloud9 will have support for node.js v0.6+ any day now: https://github.com/ajaxorg/cloud9/pull/726
Here's what I did to get Cloud9 running on node.js v0.6.9 on Ubuntu
git clone git://github.com/gero3/cloud9.git
cloud9/bin/cloud9.sh
(cd cloud9; npm install libxml; npm install formidable)
cloud9/bin/cloud9.sh
Looks like there's a couple of missing modules (libxml & formidable) -- it started right up after installing them with npm
Offline/ Open Source VERSION
You can install the open source version of Cloud9 locally using Sourcemint. The new version will require NodeJS >= 0.6.15.
Please have a look on how to do so, here: https://github.com/ajaxorg/cloud9
ONLINE VERSION
Select Node Version (0.6.x)
In Cloud9 IDE you can select a preferred version of node from within the RUN panel on the left of the editor: https://skitch.com/detmarterhuurne/8kykn/select-node-version-cloud9
Or you can select a runtime in the preferences panel also on the left of the editor
cloud9 ide should have 0.6 support
Good alternatives to cloud9 ide include
WebStorm 3.0
unix
UPDATE: if you use bin/cloud9.sh will lead the built-in node which is version 0.4. so if you do that even you install node v.6.x you still using node 0.4

Resources