question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ionic 2 cordova installation issue

See original GitHub issue

I don’t know where to put this, since Apache Cordova does not apparently allow public bug reports in Jira. Maybe someone here has reporting access to their site.

A couple days ago I tried installing “$npm install -g ionic cordova” in windows that resulted in neither being installed.

Yesterday I installed separately. $npm install -g ionic worked okay, but $npm install -g cordova gave me the error that I had previously. See below.

$npm install -g cordova

The installation failed at the attempt to copy someting called “abbrev” from a nonexistent “.staging” directory over to the global npm

It looks like a LOT of the installation modules got installed, but I worry that if “abbrev” was not the final one, it’s failure to install (and the install abort) may have caused other modules not to be installed, which could be a DISASTER. (See more below.) I actually HAVE a recent version of abbrev@1.0.9 installed (10/27/2016) package date . . . so I may have tried installing recently and the cordova package was only recently broken.

And no config files were installed in the top-level “cordova” directory! Another reason that the installation may be broken in a big way.

This is on Windows 7. I have the very latest stable Node and NPM installed (unless another was released in the last week).

SO: There is something seriously wrong with the “abbrev” package. It seems to believe that it was installed in a “.staging” directory that does not exist and hence cannot copy itself over to the normal npm cache.


$ ionic --version 2.1.4

$ npm install -g cordova C:\Users\pkosenko\AppData\Roaming\npm `-- (empty)

… [many nodules show being installed here]

npm ERR! Windows_NT 6.1.7601 npm ERR! argv “c:\Program Files\nodejs\node.exe” "C:\Users\pkosenko\AppData\Roaming\npm\

\node_modules\npm\bin\npm-cli.js" “install” “-g” “cordova” npm ERR! node v6.8.0 npm ERR! npm v3.10.9 npm ERR! path C:\Users\pkosenko\AppData\Roaming\npm\node_modules.staging\abbrev-f7f922e4 npm ERR! code ENOENT npm ERR! errno -4058 npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename ‘C:\Users\pkosenko\AppData\Roaming\npm \node_modules.staging\abbrev-f7f922e4’ -> ‘C:\Users\pkosenko\AppData\Roa ming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev’ npm ERR! enoent ENOENT: no such file or directory, rename ‘C:\Users\pkosenko\AppData\Roaming\npm \node_modules.staging\abbrev-f7f922e4’ -> ‘C:\Users\pkosenko\AppData\Roa ming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev’ 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\pkosenko\npm-debug.log npm ERR! code 1 pkosenko@PETER-KOSENKO ~ $

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Khalid-Nowafcommented, Nov 5, 2016

I used to have the same problem but on OSX , I fix it by uninstall ionic and cordova then install them again.

npm uninstall -g cordova ionic npm install -g cordova ionic

1reaction
ghenry22commented, Nov 5, 2016

Try the Cordova slack channel as well for support queries

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic 2 Installation Problems - node.js - Stack Overflow
I'm trying to install the ionic framework with npm. I had some issues right now. At first i tried it with the latest...
Read more >
Facing issue while installing JSONStore in Cordova (Ionic-2 ...
Hi, Currently i'm using MobileFirst 8.0 in my Ionic-2 Project. But somehow i'm facing the issue while Installing the JSonStore Plugin.
Read more >
How to Install The Ionic Framework CLI to Build Mobile Apps
The Ionic CLI is the preferred method of installation—offering a wide range of dev tools and help options. Learn how to install Ionic...
Read more >
Ionic isn't Cordova Anymore - Ionic Blog
One of the big problems with simply lumping Ionic Framework under the Cordova bucket is that prominent surveys, like the StackOverflow developer ...
Read more >
Using Cordova Plugins and Ionic Native - Capacitor
If you don't want to risk to introduce breaking changes, use npm update cordova-plugin-name instead of @2 as update respects semver. Installing Ionic...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found