Welcome I want install ionic but I can't. i installed corodva.
My error status code 400(Bad Request) why?
> C:\Windows\System32>npm install -g cordova
npm WARN engine xmlbuilder#2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"4.2.2","npm":"2.14.3"})
C:\Users\kacper\AppData\Roaming\npm\cordova -> C:\Users\kacper\AppData\Roaming\npm\node_modules\cordova\bin\cordova
cordova#5.3.1 C:\Users\kacper\AppData\Roaming\npm\node_modules\cordova
├── underscore#1.7.0
├── q#1.0.1
├── nopt#3.0.1 (abbrev#1.0.7)
└── cordova-lib#5.3.1 (valid-identifier#0.0.1, unorm#1.3.3, osenv#0.1.0, properties-parser#0.2.3, bplist-parser#0.0.6, semver#4.3.6, shelljs#0.3.0, cordova-app-hello-world#3.9.0, npm#2.14.3, dep-graph#1.1.0, rc#0.5.2, xcode#0.8.0, elementtree#0.1.6, npmconf#2.1.2, glob#4.0.6, plist#1.1.0, cordova-serve#0.1.3, request#2.47.0, aliasify#1.7.2, init-package-json#1.9.1, tar#1.0.2, cordova-registry-mapper#1.1.11, cordova-js#4.1.1)
C:\Windows\System32>npm install -g ionic
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\kacper\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic"
npm ERR! node v4.2.2
npm ERR! npm v2.14.3
npm ERR! code ECONNRESET
npm ERR! network tunneling socket could not be established, statusCode=400
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request:
npm ERR! C:\Windows\System32\npm-debug.log
Help me.
You have to install Node JS version 0.12.6, and after that
npm install -g cordova ionic
it will install Ionic and Cordova.
firstly download and install node.js from
https://nodejs.org/en/
then restart your PC
if you are in a proxy network set your http/https proxy in CMD ( command prompt ) by
set http_proxy=http://[proxy_ip]:[proxy_port]
set https_proxy=https://[proxy_ip]:[proxy_port]
then use
npm cache clean
to clear npm's cache folder
then use the following ling to install ionic and cordovo
npm install -g cordova ionic
Related
I am trying to deploy my NextJS application onto Vercel but each time at the deploy stage, I am met with these errors and the deployment will fail:
Previous build cache not available
Cloning completed: 426.52ms
Running "vercel build"
Vercel CLI 28.6.0
Installing dependencies...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: react-typed#1.2.0
npm ERR! Found: react#18.2.0
npm ERR! node_modules/react
npm ERR! react#"18.2.0" from the root project
npm ERR! peer react#"^18.2.0" from next#13.0.5
npm ERR! node_modules/next
npm ERR! next#"13.0.5" from the root project
npm ERR! 3 more (react-dom, react-icons, styled-jsx)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.3.0" from react-typed#1.2.0
npm ERR! node_modules/react-typed
npm ERR! react-typed#"^1.2.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react#16.14.0
npm ERR! node_modules/react
npm ERR! peer react#"^16.3.0" from react-typed#1.2.0
npm ERR! node_modules/react-typed
npm ERR! react-typed#"^1.2.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /vercel/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /vercel/.npm/_logs/2022-12-02T16_42_09_037Z-debug-0.log
Error: Command "npm install" exited with 1
I have tried running npm install --legacy-peer-deps and tried redeploying onto Vercel, but the same issue persists. When I run this application on my localhost:3000 using npm run dev, the application renders fine. Anyone knows what I can do?
I have tried
npm install --legacy-peer-deps
and also pushing these changes onto my GitHub repository. When redeploying, the same issue still shows. I run
npm install --legacy-peer-deps
again, but this time, there are no more changes to be made.
you can override the installing command used by Vercel CLI, either by:
Going to Vercel Dashboard -> -> Settings -> General -> Scroll to Build & Development Settings and put npm install --legacy-peer-deps in Install Command
Creating vercel.json file in the root directory of your project that should contain:
// vercel.json
{
"installCommand": "npm install --legacy-peer-deps"
}
after that push and wait for deployment, it should go through this time
But I recommend looking for the cause of this issue. It seems like some dependency you're using is depending on react-typed, and the latter is not maintained anymore. It's better to seek an alternative
I am following the ionic installation guide, but when I want to create app it give me error.
The command I enter is:
ionic start cutePuppyPics --v2
The error it gives is:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\Nodist\\v\\nodev7.0.0\\node.exe" "C:\\Program Files (x86)\\Nodist\\bin\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v7.0.0
npm ERR! npm v3.10.6
npm ERR! code ELIFECYCLE
npm ERR! node-sass#3.9.3 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#3.9.3 postinstall script 'node scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-sass
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! E:\nodeProjects\ionic\cutePuppyPics\npm-debug.log
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall
Caught exception:
undefined
Mind letting us know? https://github.com/driftyco/ionic-cli/issues
Node v7.0.0 causes this problem. Instead of nodejs v7.0.0 use nodejs v6.9.1 or install LTS version of node from https://nodejs.org/en/download
You don't have to use --v2 when creating your project. Just type
ionic start cutePuppyPics blank
--v2 is not working with latest ionic. you can use
ionic start cutePuppyPics ionic-angular (for ionic 2.x)
ionic start cutePuppyPics ionic1 (ionic 1.x)
I'm creating an app with Electron (the GitHub instrument to create apps with html and node.js).
This app will be used by some computer that they aren't connected to internet.
I need to show a map and collocate markers on it (I found Leaflet), but all maps service require internet.
With Open Street Maps I can export an osm file but I can't find a way to render it into Leaflet, because the only library for node (mapbox-gl-native-master) who do it require C++11 and it gives me error in installation:
$ npm install mapbox-gl-native
> mapbox-gl-native#3.2.1 preinstall /home/dpd-/node_modules/.staging/mapbox-gl-native-eb973ff7
> npm install node-pre-gyp
npm ERR! Linux 4.4.0-24-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-pre-gyp"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! Cannot read property 'target' of null
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/dpd-/node_modules/.staging/mapbox-gl-native-eb973ff7/npm-debug.log
npm WARN enoent ENOENT: no such file or directory, open '/home /dpd-/package.json'
npm WARN dpd- No description
npm WARN dpd- No repository field.
npm WARN dpd- No README data
npm WARN dpd- No license field.
npm ERR! Linux 4.4.0-24-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "mapbox-gl-native"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! mapbox-gl-native#3.2.1 preinstall: `npm install node-pre-gyp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mapbox-gl-native#3.2.1 preinstall script 'npm install node-pre-gyp'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mapbox-gl-native package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm install node-pre-gyp
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs mapbox-gl-native
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls mapbox-gl-native
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/dpd-/npm-debug.log
Take a look at either Kothic or Mapnik, Both should be more than capable of handling offline osm files. I guess Kothic will be a tad easier to implement (pure JS), since Mapnik essentially is a C++ library with a node.js interface. Additionally, Kothic claims easy integration with Leaflet, so I imagine this should suit you quite well.
I have downloaded latest node version 4 and tried to install ionic.
But it was loading for long time in command prompt.
npm install ionic -g
Then I have downloaded 0.10.38 and it started downloading.
Whether ionic supported only in the 0.10 version.
While Installing with higher version getting below error
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs
node_modules\\npm\\bin\\npm-cli.js" "install" "ionic" "-g"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6
npm ERR! Callback called more than once.
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
C:\Users\<users>\AppData\Roaming\npm
└── (empty)
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs
node_modules\\npm\\bin\\npm-cli.js" "install" "ionic" "-g"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6
npm ERR! Callback called more than once.
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
C:\Users\<users>\AppData\Roaming\npm
└── (empty)
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs
node_modules\\npm\\bin\\npm-cli.js" "install" "ionic" "-g"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6
npm ERR! Callback called more than once.
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Windows\system32\npm-debug.log
npm ERR! code 1
The error message says "node v5.0.0". Make sure you are using Node 4 and not 5. Ionic doesn't yet work with Node 5.x.x. Use node -v to check for version.
First you need to run npm uninstall -g ionic
then install new nodejs vesrion from the https://nodejs.org/en/download/
Once you have completed your latest nodejs installation.
Try to install ionic using
npm install -g ionic
if you are using mac os or ubntu then you can use sudo npm install -g ionic.
On Windows it may be a pain to get a working environment sometimes. To speed up Ops, you can try to use the ionic-box https://github.com/driftyco/ionic-box.
Ionic-Box is a ready-to-go development environment with Ionic, Cordova, and Android.
Steps to install proper nodejs, cordova and ionic may help , try to follow mention below steps
1) Install compatible version of nodejs (windows)
2) Configured path of nodeJs from Computer property Advance environment variable.
3) check npm -v is working
4) run npm install -g cordova
5) if not started configured nodejs/npm to use http instead of https package using ssl false
6)run npm install -g ionic
You can run the following command to downgrade the version :
npm install npm#4.5.0 -g
or
npm install npm#latest -g
You can use Yeoman generator to create your ionic project, which is very easy to use.
here you can find out more :
http://yeoman.io/learning/index.html
to install yeoman :
npm install -g yo
Usage :
Make a new directory, and cd into it
mkdir my-ionic-project && cd $_
Run yo ionic, optionally passing an app name:
yo ionic [app-name]
more information :
https://github.com/diegonetto/generator-ionic
i think u should try this first node.js then commands
$ sudo npm install -g cordova after it completes then install this
$ sudo npm install -g ionic since i used sudo it may ask for password
check weather u done these steps
node.js
npm install -g cordova
npm install -g ionic
ionic --version //to check u have installed correctly
ionic start myapp blank //or tabs or sidemenu
now it will download all required files
check this link https://nodejs.org/en/
Please refer the below link, first you need to install cordova once successfully installed then install ionic.
Link - https://evothings.com/doc/build/cordova-install-windows.html
Hi I have a some problem like this one check this I hope this help you.
https://github.com/ionic-team/ionic-cli/issues/2477
Run this:
npm install --save-dev #ionic/app-scripts
MacBooks-MacBook-Pro:~ Apple$ sudo npm install -g ionic
Password:
npm ERR! network tunneling socket could not be established, cause=getaddrinfo ENOTFOUND
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! System Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "ionic"
npm ERR! cwd /Users/Apple
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ECONNRESET
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/Apple/npm-debug.log
npm ERR! not ok code 0
Try installing without sudo
npm install -g ionic
If that does not help there is an existing Github issue about proxies:
https://github.com/npm/npm/issues/3354
You might also try this Stack Overflow question:
Is there a way to make npm install (the command) to work behind proxy?