I've been having issues with upgrading my version of Node.js recently and one of the ways I've tried was with node version manager. When I install the install_nvm.sh file with curl -sL https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh -o install_nvm.sh and ran bash install_nvm.sh, I get this error:
install_nvm.sh: line 1: 400: : command not found
My version of Node is on 12.21.0 and NPM is on 7.18.1. This started when I tried to download a dependency called "yt-search", but it said that it depended on a vulnerable version of "cheerio", "css-select" and "css-what". I tried to install each of them one by one to their recent versions, but the error still was there. I had to reinstall my terminal over 10 times to attempt to fix this because when I went further, the errors started to pile up.
Like what frozen said in the comments, upgrading it to 2.9.0 solved the issues!
Related
After creating a vite app. I run the command npm run dev and I get this error
[vite:esbuild] The service is no longer running: write EPIPE
Please, How do I solve this error.
I have tried the following solutions
Vite build fails with esbuild error
error while transforming /app/client/vite.config.ts with esbuild in Docker image
Turn off your Antivirus Software
Disable your antivirus software then go ahead and run:
npm run dev
I found a solution to my problem. If you have an anti-virus, you need to uninstall it.
I myself, I had to uninstall SMADAV anti-virus.
Hello I am currently stuck with a task that is given to me. The problem is that I am unable to install dependencies when running npm install which means that I am unable to run the website locally which is my main goal
There are many versions of this question in the internet but I am not really sure what the main cause of this therefore the title of this question
you can view my error logs here
https://www.codepile.net/pile/4qL4NOq0
I have also tried some solutions that I have seen on the internet such as:
reinstalling node
deleting node_modules and package-lock.json and re-npm install (this is when I have installed the node_modules but still unable to run the website locally)
installing grpc globally
The version of grpc that you are installing (1.23.3) does not support the version of Node.js that you are using (16). You will need to use a newer version of grpc (the latest is 1.24.11) or an older version of Node to get that to work.
Please note that the grpc package has been deprecated in favor of the #grpc/grpc-js package. It is recommended that you use that one instead if possible.
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 am trying to run npm install but I am getting the following error:
node_modules\#newrelic\native-metrics\build\binding.sln.metaproj : error MSB4057: The target "/t:native_metrics" does not exist in the project.
I tried a few suggested solutions like: completely uninstalling nodejs (I also removed all the leftover folder in AppData), I tried downgrading node-gyp to an older version rather than the latest. I tried this solution here: The target "/t:native_metrics" does not exist in the project
I also uninstalled and installed Python2.7 but that didn't help. I removed and installed Windows Build Tools but nothing. I also removed all the npm, npm-cache and .node-gyp folder and that didn't do the trick.
I am not getting the error when I run npm install on two other machines.
Anyone have any suggestion before I do a clean install of my Windows?
I am using cheerio module for web scraping . It require htmlparser2 module , after installing htmlparser2. it gives following error-
Error: Cannot find module 'entities/lib/decode_codepoint.js'
Use this in your terminal:
npm install grunt-contrib-jshint --save-dev
Seen here:
https://www.npmjs.com/package/grunt-contrib-jshint
Below is applicable to Windows environment only, not Linux.
I received the same error when I tried to build jquery from source on Windows. It turns out that jsdom and/or grunt-contrib-jshint (both of which depend on htmlparser2) require gyp and for gyp to work you need a c++ compiler and python. I thought that I had them but turned out, that python need to be version 2.x not version 3.x. If it is 3.x it gives you a proper error on the first run (that I missed) and on subsequent runs you are getting the error in the question above which makes you wonder what's going on.
So I uninstalled python 3.x, installed python 2.x (don't forget make sure that python.exe is in your path), then deleted the node_modules folder in the project root and ran the build again.
This time around it worked. I'm not sure if this solves the OP question, but I hope it helps someone.