I had an Ionic project for some time. Recently I got an update of Windows 10 (perhaps that caused the issue) and also installed the latest Node - version 10. Today, I did a clean checkout and did npm install. To my surprise, I got this error:
Downloading binary from
https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-64_binding.node
Cannot download
"https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-64_binding.node":
And indeed, this binding does not exist for 4.7.2. Could it be that it was removed?
Ionic version is 3.19.0.
How can I solve it?
NodeJS 10 is not supported by node-sass 4.7.2. Downgrade your Node version to 8 if you're working with Ionic.
Related
Hello hope you are well!
I try to install a project react in my pc so I started to install npx create-next-app hulu-2-yt.
but me display this error in my cmd.
npm does not support Node.js v13.14.0
You should probably upgrade to a newer version of node as we can't make any promises that npm will work with version.
I try to make upgrade for Last version of the nodejs but I have windows 7 and said me that can not support for windows 7.
Do you have any solution.
You should upgrade node manualy all you have to do uninstall the old node version and watch this video Installing Latest Node and React In windows 7 or Low End PC is helped me lot to resolve the problem i hope it working for you as well.
initially I was using Node v10 (I believe) and when generating a new angular project (v7) my node_modules were a "modest" ~140 Mb.
I then decided to upgrade to Node v11.1 and install the build-tools, that the installer now optionally allows you to install.
My node_modules size went to over 700 MB.
The culprit is the node-sass package, which is now downloading the whole project (cpp files, .sln and all) and getting fully compiled on the initial npm install (using node-gyp).
Is there any way to change this behavior to the way it did things without the installed build tools? (short of manually uninstalling the build pipeline that node automatically installed)
Or is there any advantage that I'm not seeing? To me it all worked just fine (including everything scss and sass-related) without the huge increase in occupied space.
So, I found out what's going on.
The current version of angular (cli version 7.0.6) installs node-sass at version 4.9.3.
Version 4.9.3 does not support node v11. Support for node v11 was added with 4.10.0. As such the install script that node-sass is running can't find a pre-built binary to download from github and falls back to building the source files (which results in 400 MB wasted space).
That's why the problem started cropping up after I updated to the latest node version.
For now there's 2 solutions:
Stick with LTS v10 of node (for which there is a pre-built binary)
Manually upgrade to the latest version of node-sass and hope angular doesn't break because of it
I went with option 1 and installed the LTS node version.
This is a problem that will probably fix itself in time, as angular updates its node-sass dependency. For the time being I hope the answer will help someone facing the same situation.
I'm trying to work on a really old cordova project(cordova 4.2.0) in Windows. In order to build the project I need an appropriate Node version.
I have tried a few versions from the distributions page by basically hit and trial but in vain. The error is the same.
404 for cordova repository www
Which version of node would work with cordova 4.2.0?
Screenshot here:
You have installed cordova 4.0.0 on machine, but your project requires and try to download 3.6.3, but that version is no longer present on npm package.
Use
npm show cordova#* version on console to show all available versions of Cordova, then upgrade your project to the nearest one (es. 4.0.0).
After I upgraded the ionic CLI, I have error when I do a ionic serve.
The error is
ERR: Your Node.js version is v5.11.1. Please update to the latest Node 6 LTS version (or latest Node).
What is the command that I can upgrade to Node 6 LTS without redownload the Node.js installer?
Use NVM Windows Version (Node Version Manager) - be aware its a separate version from Mac / Linux
https://github.com/coreybutler/nvm-windows
More info you can check out this one :
How do I update Node.js?
nvm install node
There is no need to update your node in case some impacts might occur to your projects, the most effective way to tackle this is to reinstall your ionic CLI in command prompt by operating: "npm uninstall -g ionic" and npm install -g ionic#.... You might need to switch earlier version of ionic so as to match with your cordova or some other App package.enter image description here
Just download and install Node.js from https://nodejs.org/en/. It will detect your current installation version and upgrade it if necessary.
I have made an app with PhoneGap and did so just a few seconds ago by doing the
npm install -g phonegap
then I checked the verison by doing:
phonegap -v
it returned:
0.9.4
How do I update that? I just followed their sample on the internet. When I go to upload to https://build.phonegap.com/apps/ it gives me this error:
This app is using PhoneGap 2.2.0. We are ending support for Cordova versions below 2.5 -- please upgrade. This app isn't using the latest version of PhoneGap. We recommend upgrading to 3.7.0.
my cordova's version is 5.1.1?
c:\users\user>cordova -v
5.1.1
c:\users\user>phonegap -v
0.9.4
How do I update from PhoneGap 2.2.0 to 2.5.0?
I don't know exactly why, but I had same issue.
I've solved a few minutes ago with version of last release:
npm install -g phonegap#5.1.1-0.29.0
Regards