$ npm install -g cordova ionic
npm ERR! Unexpected end of input at 1:172390
npm ERR! version":"3.20.2","dependencies":
{"basic-auth":"1.0.0","connect":"2.2
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Inspiron 15\AppData\Roaming\npm-cache\_logs\2017-08-
01T08_02_19_789Z-debug.log
I'm keep getting this error while trying to install cordova ionic. I've already installed node js latest version to my computer.
Try :
sudo apt-get install nodejs nodejs-legacy npm
And then :
sudo npm install -g cordova
Related
Hello i'm trying to instal react native but on running npm install -g react-native-cli it brings the following error on Command Prompt.
npm ERR! code EINVAL
npm ERR! path C:\WINDOWS\system32\'C:\Users\User\AppData\Roaming\npm
npm ERR! Illegal characters in path.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache\_logs\2021-02-06T17_33_30_954Z-debug.log
try to clean cache
npm cache clean --force
then run
npm install -g react-native-cli
Or
delete your nodemodules folder
and then run
npm install -g react-native-cli
I also got this error:
npm ERR! EINVAL: invalid argument, utime
And was solved the issue with message:
By doing the following steps:
npm install -g npm#latest
cd your_project_directory
rmdir /s /q node_modules
npm install
That, basically upgrade the node package, then refresh the project's packages. Hope this brings down your error!
I am on Windows 10 trying to install Ionic. I ran the following code in the terminal:
npm install -g #ionic/CLI
And I get this error:
npm ERR! code EEXIST
npm ERR! path C:\Users\Lari\AppData\Roaming\npm\ionic.ps1
npm ERR! Refusing to delete C:\Users\Lari\AppData\Roaming\npm\ionic.ps1: is outside C:\Users\Lari\AppData\Roaming\npm\node_modules\#ionic\cli and not a link
npm ERR! File exists: C:\Users\Lari\AppData\Roaming\npm\ionic.ps1
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with force to overwrite files recklessly.
npm ERR! A complete log of this can be found in:
npm ERR! C:\Users\Lari\AppData\Roaming\npm-cache\_logs\2020-08-12T22_24_22_577Z-debug.log
I have ran the following commands to debug:
npm uninstall -g ionic
npm install -g #ionic/cli
npm install -g cordova #ionic/cli
and much more for over a week now.
I copied and paste this path in windows
C:\Users\Lari\AppData\Roaming\npm\ionic
Deleted all ionic folders, and then this path
C:\Users\Lari\AppData\Roaming\npm
Deleted some ionic files present as well.
Ran npm I -g #ionic/cli and it did install version 6.11.0.
Thanks everyone, hope it helps someone
unable to install these package using npm: npm install eslint --save-dev , npm install -g express-generator
Both time give same error :**
npm ERR! Unexpected end of JSON input while parsing near '...0.2.13":{"name":"mini'
npm ERR! A complete log of this run can be found in:
npm ERR! /home/user/.npm/_logs/2020-06-04T15_20_40_810Z-debug.log
but while installing another package npm install express it successfully installed
try to clean npm cache and then reinstall the packages
npm cache clean --force
npm install eslint --save-dev
npm install -g express-generator
I went to install nodejs and npm on Debian9 like this with the root account because npm is not included in the legacy debian package :
curl -sL https://deb.nodesource.com/setup_8.x | bash -
.../...
## Run `apt-get install nodejs` (as root) to install Node.js v8.x and npm
:~#
:~# apt-get install -y nodejs
Now I would like to install some module with npm or to do the update of npm and I've got this error message
:~# npm cache clean -f
npm WARN using --force I sure hope you know what you are doing.
:~# npm install -g npm
npm ERR! code ERR_INVALID_OPT_VALUE
npm ERR! The value "4294967295" is invalid for option "family"
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-03-29T11_17_37_357Z-debug.log
Here the link to the debug log file : Justpasteit
Thanks for any help
I'm using 8.9.2 version of node js and when I tried to install angular cli
with this command : npm -g install #angular/cli
It is displaying some npm errors
This is what I got on my cmd prompt screen :
npm ERR! Unexpected end of JSON input while parsing near '...-2.3.0.tgz"},"engines'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\haris_000\AppData\Roaming\npm-cache\_logs\2017-12-05T12_19_58_814Z-debug.log
I guess the command to install Angular is:
npm install -g #angular/cli