I'm having problem's when trying to run my gulp command in the terminal. I've been trying to track down the issue and from what I can tell the issue is that I'm running an outdated version of node.
node -v tells me that I am on v0.10.46, but the Node install downloaded from the website says it's currently on v4.4.7.
The first issue I had was with es6 promises, but I managed to install the es6-polyfill which solved the issue.
Now gulp is throwing an error related to /node_modules/gulp-imagemin/index.js. Specifically the use of const variables. (const path = require('path')).
Based on this thread: https://github.com/sindresorhus/gulp-imagemin/issues/181#issuecomment-219303510 - this issue seems to be an outdated version of node, but no matter what I do it won't upgrade!
I've explored all possible avenues for upgrading Node - using npm, nvm, n, brew and even a local re-install, but everytime it seems to be installing an outdated version.
I've explored the possibility that I'm installing a 32bit version on a 64bit system, but that doesn't seem to be the issue either.
I have absolutely no idea how to progress fixing this issue. I'm trying to build a wordpress website, and no matter what theme I use this error comes back to haunt me!
Help!
EDIT:
Just to add.. in this image (http://imgur.com/a/OzR5Y) you can see the output of me trying to upgrade using N, and then following the David Walsh upgrading method.
I had the same problem and I tried everything from uninstalling it by this instructions without any result. But maybe you have in your computer a management like nvm installed, just try this:
which node
And then if the respond of that is something like:
/Users/MYUSER/.nvm/v0.10.46/bin/node
That's the problem, so you can solve this by uninstalling nvm and then install Node.js normally or just keep using nvm
Related
I've manually installed NodeJS v14 on my machine, but periodically, it gets replaced with the latest version of node, currently v19. There's no indication that this has happened until I check the node version.
I suspect VsCode is automatically installing nodev19, and removing the v14 installation.
Is this right, or is something else the culprit?
If it is VsCode, is there any way to stop it from doing that?
I've searched online, but I don't see anything about node auto updating itself.
Apart from Node itself, I only have the following installed:
VsCode
Postman
Microsoft Teams
Slack
Git Bash
I've found a similar issue here here but following the accepted answer doesn't actually install the latest version of node, so I suspect it is something else.
I am using npm after installing nodejs.
I have installed it once before and I just finished deleting all the components because it kept giving the error in the image below, but when I try to use npm, I keep getting errors saying.
The system cannot find the path specified.
Even though I reinstalled node, it still gives these weird errors where it says the error twice on powershell and once on cmd.
I'm so confused :(
In case you are using nvm to manage your node versions. You can just change your node version and it should work. This solution worked for me.
Check the current nvm version by using the command nvm current.
If that is not the version which you currently installed or updated, use the command nvm use <new_version>
for example: nvm use 16.17.0
I was trying to install nodejs using homebrew. After the installation process finished with error my os seems to be broken. I can not run any commands. not even the basic commans lik cd and ls. I am getting following error.
I reverted changes in bashrc file. Has someone faced similar problem ? what could be the issue here ?
Turns out homebrew broke something in my case. As soon as I unistalled homebrew things were back to normal.
I used this link to unistall.
How to uninstall homebrew?
I just installed the project react-native-redux-router from github and I'm trying to have it working.
Although, it looks like I have an issue somewhere as I get the following error.
I tried to reinstall everything I could, but nothing works.
I'm running the latest version of nvm (0.31.0), latest version of node (5.6.0), latest version of npm (3.7.3) and the latest version of react-native-cli (0.1.10) installed globally.
I searched on different forums how to fix the issue and I can't find a solution. Do you have any idea how to fix it?
Thanks.
I've newly set up an environment, and installed nodejs from github, 0.11.14-pre. npm as well, 1.4.9. So, the problem is that my entire code base is on node#0.6.9. Upgrade isn't my option because it's too much work for it. I tried sudo n 0.6.9. It gives me Error : invalid version 0.6.9. Also I tried sudo n 0.10.28, and worked perfectly.
Is there any way to install node#0.6.9 manually or via n?
EDIT
nvm worked great for me, though it took me hours to install and run nvm. Also - I had a problem to have nvm install nodejs as a normal user due to a permission denial of creating a folder. But nvm-global solved my problems and was easy to install.
https://github.com/xtuple/nvm
Haven't tested this yet.. but this Node Version Manager looks really promising
Github: Node Version Manager