Question:
Why Node version report a different version than installed in my system?

Problem

In order to use AWS cdk I'm required to update the node, but apparently, I'm already set. I must have installed NodeJS without Pacman but can't remember how. Any ideas where to start in order to get it right?


$ sudo pacman -S nodejs


resolving dependencies...

looking for conflicting packages...


Packages (1) nodejs-20.6.0-1


Total Download Size:   13.85 MiB

Total Installed Size:  58.63 MiB

Net Upgrade Size:       0.34 MiB


$ node --version


v14.17.5


$ which node


~/.nvm/versions/node/v14.17.5/bin/node


Solution

Try setting the version with nvm


$ nvm use 20

Now using node v20.6.0-1 (npm vXXXX)

$ node -v

v20.6.0-1


Answered by: >Diego Torres Milano

Credit: >StackOverflow


Blog Links

>How to manage the Text in the container in Django?

>Fix webapp stops working issue in Django- Python webapp

>Creating a form in Django to upload a picture from the website

>Sending Audio file from Django to Vue

>How to keep all query parameters intact when changing page in Django?

>Solved: TaskList View in Django

>Implement nested serializers in the Django rest framework

>How to filter events by month in Django?

>Sorting the restframework in Django

>Ways to access instances of models in view in order to save both forms at once in Django

>What makes index.html have such kind of name in Django?

>Fix Module Not Found during Deployment- Django

>Creating a Django with existing directories, files, etc.?

>How to Read a CSV file with PHP using cURL?


Nisha Patel

Nisha Patel

Submit
0 Answers