npm an ionic not working installing - ionic-framework

I am trying to install npm and ionic but receive the following error.
Any help would be highly appreciated.
$ npm install npm WARN package.json infopharm#1.0.0 No repository
field. npm WARN package.json infopharm#1.0.0 Nenter code hereo
README data npm WARN package.json infopharm#1.0.0 No license field.
npm ERR! Windows_NT 6.1.7601 npm ERR! argv "c:\Program
Files\nodejs\node.exe" "c:\Program Files\nodejs\
node_modules\npm\bin\npm-cli.js" "install" npm ERR! node v0.12.4
npm ERR! npm v2.10.1
npm ERR! error:0906D06C:PEM routines:PEM_read_bio:no start line npm
ERR! npm ERR! If you need help, you may report this error at: npm ERR!
https://github.com/npm/npm/issues npm ERR! Windows_NT 6.1.7601 npm
ERR! argv "c:\Program Files\nodejs\node.exe" "c:\Program
Files\nodejs\ node_modules\npm\bin\npm-cli.js" "install" npm ERR!
node v0.12.4 npm ERR! npm v2.10.1

have you tried to run the node command prompt as Administrator?

Related

ionic start with blank template giving error

I installed latest node, npm and angular
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: z#0.0.1
npm ERR! Found: #angular/compiler#11.0.9
npm ERR! node_modules/#angular/compiler
npm ERR! dev #angular/compiler#"~11.0.5" from the root project
npm ERR! peer #angular/compiler#"11.0.9" from #angular/compiler-cli#11.0.9
npm ERR! node_modules/#angular/compiler-cli
npm ERR! dev #angular/compiler-cli#"~11.0.5" from the root project
npm ERR! peer #angular/compiler-cli#"^11.0.0" from #angular-devkit/build-angular#0.1100.7
npm ERR! node_modules/#angular-devkit/build-angular
npm ERR! dev #angular-devkit/build-angular#"~0.1100.5" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer #angular/compiler#"11.1.2" from #angular/localize#11.1.2
npm ERR! node_modules/#angular/localize
npm ERR! peerOptional #angular/localize#"^11.0.0" from #angular-devkit/build-angular#0.1100.7
npm ERR! node_modules/#angular-devkit/build-angular
npm ERR! dev #angular-devkit/build-angular#"~0.1100.5" 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 C:\Users\JatinKumar\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\JatinKumar\AppData\Local\npm-cache\_logs\2021-02-04T19_41_41_433Z-debug.log
[ERROR] An error occurred while running subprocess npm.
npm.cmd i exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
run npm install --force
and then
npm install --save-dev --force
Now you can run your project!

Cannot install Ionic on macOS 10.12.3

I have had considerable trouble trying to install Ionic on my Mac. I have tried every suggestion posted on the web without success. I have tried installing as root, using sudo, you name it.
Using Homebrew I have successfully installed node : v6.10.0 and npm v4.1.2.
Issuing: "npm install -g cordova ionic"
Results in:
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v6.10.0
npm ERR! npm v4.1.2
npm ERR! path /Users/craigmaxey/.npm
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall mkdir
npm ERR! Error: EPERM: operation not permitted, mkdir '/Users/craigmaxey/.npm'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, mkdir '/Users/craigmaxey/.npm'
npm ERR! at Error (native)
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/Users/craigmaxey/.npm' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v6.10.0
npm ERR! npm v4.1.2
npm ERR! path npm-debug.log.3262676290
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open 'npm-debug.log.3262676290'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, open 'npm-debug.log.3262676290'
npm ERR! at Error (native)
npm ERR! errno: -1,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'npm-debug.log.3262676290' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/craigmaxey/npm-debug.log
This:
EPERM: operation not permitted, mkdir '/Users/craigmaxey/.npm'
indicates that you're missing write privileges on /Users/craigmaxey/.npm. Usually, you can fix this by running npm with sudo:
sudo npm install -g cordova ionic
If this doesn't work for you (since you mentioned you already tried sudo), please add the exact error message you get from running this exact command.
I too was getting the same errors and was able to get it to install following these steps:
Using Finder, manually create a folder called "#ionic" at this location: /usr/local/lib/node_modules/#ionic
Using finder, if "ionic" folder exists at /usr/local/bin/ionic, delete it
run sudo npm install -g #ionic/cli

Ionic is not recognized as an internal or external command

how to resolve can i fixed it . i already install cordova and ionic global
C:\Users\sever>npm install -g ionic
npm ERR! not a package C:\Users\sever\ionic
npm ERR! addLocal Could not install C:\Users\sever\ionic
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\sever\node_modu
les\npm\bin\npm-cli.js" "install" "-g" "ionic"
npm ERR! node v5.1.1
npm ERR! npm v3.9.3
npm ERR! path C:\Users\sever\AppData\Local\Temp\npm-5068-24aad619\unpack-77f32b4
3\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\sever\AppData\
Local\Temp\npm-5068-24aad619\unpack-77f32b43\package.json'
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\sever\AppData\
Local\Temp\npm-5068-24aad619\unpack-77f32b43\package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\sever\npm-debug.log
you just have to run
npm install -g cordova
and
npm install -g ionic
And then in windows you have to reopen the cmd window, else the changes aren't noticed.
My problem is npm -v is 3.10.8, which is lower than 4, causing me npm install -g ionic cordova always fail. Giving error like below.
'ionic' is not recognized as an internal or external command, ...
After I run npm install -g npm everything seem fine, and now I can run npm install -g ionic cordova

"npm install googleapis" produces the following error

"npm install googleapis" produces the following error:
npm ERR! Error: No compatible version found: inherits#'^2.0.1'
npm ERR! Valid install targets:
npm ERR! ["1.0.0","2.0.0","2.0.1"]
npm ERR! at installTargetsError (C:\Program Files\nodejs\node_modules\npm\lib\cache.js:553:10)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\lib\cache.js:477:15
npm ERR! at saved (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:138:7)
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:218:7
npm ERR! at Object.oncomplete (fs.js:297:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
I had the same problem (OS X 10.9.4). What turned out to be the problem was a dated node/npm installation, which I upped to the latest version from the node.js homepage. Not sure if node or npm is the culprit, but upgrading both fixed the problem you describe.

Npm install directly from Github Error: ENOENT

I'm running an example from build-nodejs-npm-installation-package-scratch. Instead of uploading to npm repository I'm putting it on Github and trying to download it via npm instead. I run npm install git+https://github.com/t2wu/replaceme.git and got the following:
npm ERR! Error: ENOENT, chmod '/private/tmp/node_modules/replaceme_tim/replaceme.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "git+https://github.com/t2wu/replaceme.git"
npm ERR! cwd /private/tmp
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path /private/tmp/node_modules/replaceme_tim/replaceme.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/tmp/npm-debug.log
npm ERR! not ok code 0
I have a package.json in there, I cannot figure out what is wrong.
EDIT: I can install Express OK, but I can't install my practice module
This happens due to missing permissions or unlinked files while npm was working. This topicc is also seen at github, here.
Try running with admin perms.