Unable to install #vue/cli - node.js

My OS is windows 7 and node is 12.14.0 and npm is 6.13.4 .And when I am installing npm i #vue/cli -g with or without --bin-no-links I am getting the same following error stated in image. What's going wrong, please help.
C:\Users\dell>npm install -g #vue/cli
npm ERR! code EIO
npm ERR! syscall open
npm ERR! path C:\Users\dell\AppData\Roaming\npm-cache\_cacache\index-v5\b7\c2\76
e1d8e353f98ab50b58e3c229f2621357d7a9690c95e0a48ff52b96bf68
npm ERR! errno -4070
npm ERR! EIO: i/o error, open 'C:\Users\dell\AppData\Roaming\npm-cache\_cacache\
index-v5\b7\c2\76e1d8e353f98ab50b58e3c229f2621357d7a9690c95e0a48ff52b96bf68'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\dell\AppData\Roaming\npm-cache\_logs\2020-01-26T13_43_42_5
86Z-debug.log

Do
npm cache clean --force
to clean the cache and after that, to try again
npm install -g #vue/cli

Related

I'm trying to reinstall expo-cli package globally with the command sudo npm install --g expo-cli note that I try --force

bosshoc#MBP-de-BOSS meals-app % sudo npm install -g expo-cli
Password:
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /usr/local/lib/node_modules/expo-cli
npm ERR! dest /usr/local/lib/node_modules/.expo-cli-dKBr48UN
npm ERR! errno -66
npm ERR! ENOTEMPTY: directory not empty, rename '/usr/local/lib/node_modules/expo-cli' -> '/usr/local/lib/node_modules/.expo-cli-dKBr48UN'
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/bosshoc/.npm/_logs/2021-02-26T10_26_54_772Z-debug.log
Had the exact same thing happen to me. What worked for me was:
navigating to '/usr/local/lib/node_modules/' (Mac: [cmd]+[shift]+[G])
Show the hidden file (Mac: [cmd]+[shift]+[.]) .expo-cli-dKBr48UN
delete it
Run sudo npm install --global expo-cli

npm install -g #vue/cli VUE CLI INSTALL ERROR

I just wanted to install Vue CLI and I got this errors. I have the latest version of node.js as you can see below. I tried some different ways like npm uninstall -g vue-cli and npm cache clean --force. But they have not worked. How can I fix that?
My npm version is 7.0.3.
C:\Users\HALİL_MONSTER>NODE
Welcome to Node.js v15.0.1.
Type ".help" for more information.
C:\Users\HALİL_MONSTER>npm install -g #vue/cli
npm ERR! code EPERM
npm ERR! syscall rename
npm ERR! path C:\Users\HALİL_MONSTER\AppData\Roaming\npm\node_modules\#vue\cli
npm ERR! dest C:\Users\HALİL_MONSTER\AppData\Roaming\npm\node_modules\#vue\.cli-P415H8gb
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\HALİL_MONSTER\AppData\Roaming\npm\node_modules\#vue\cli' -> 'C:\Users\HALİL_MONSTER\AppData\Roaming\npm\node_modules\#vue\.cli-P415H8gb'
npm ERR! [Error: EPERM: operation not permitted, rename 'C:\Users\HALİL_MONSTER\AppData\Roaming\npm\node_modules\#vue\cli' -> 'C:\Users\HALİL_MONSTER\AppData\Roaming\npm\node_modules\#vue\.cli-P415H8gb'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'C:\\Users\\HALİL_MONSTER\\AppData\\Roaming\\npm\\node_modules\\#vue\\cli',
npm ERR! dest: 'C:\\Users\\HALİL_MONSTER\\AppData\\Roaming\\npm\\node_modules\\#vue\\.cli-P415H8gb'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HALİL_MONSTER\AppData\Local\npm-cache\_logs\2020-10-30T19_06_23_457Z-debug.log
I am using windows 7 and nodejs 13. I meet the same issue. I have tried restart my pc, add flags etc. nothing works.
Finally I solve it using yarn.
Install the yarn using npm: npm install --global yarn
Install the vue cli using yarn: yarn global add #vue/cli
Configure the system path that vue cli installed. yarn doesnt install vue cli in the directory as npm
I was having the same issue with downloading Vue in the terminal.
I solved this issue by using:
sudo npm install -g #vue/cli
I then check that it installed correctly and was up to date with:
vue --version

Unable to Install expo-cli

Unable to perform npm install -g expo-cli
OS : MACOS
Tried running the command with sudo user
Getting below exception.
npm ERR! errno 1
npm ERR! libxmljs#0.19.7 install: `node-pre-gyp install --fallback-to-build --loglevel http`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the libxmljs#0.19.7 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /var/root/.npm/_logs/2019-11-17T17_36_58_769Z-debug.log```
Try this: npm i -g expo-cli#3.5.0
I also had the same error with latest version of Expo, but 3.5.0 version installs without problem.

Failing to install the Grunt command line interface

I am currently having trouble installing the grunt command line interface, i get a whole lot of errors on the log when I try and install it using instructions off a tutorial website. I just added node.js from a package I downloaded off their website. Any help would be appreciated?
I used the following command as detailed on the roots WordPress instructions page
npm install -g grunt-cli
and this error message was returned
npm ERR! Error: Attempt to unlock grunt-cli, which hasn't been locked
npm ERR! at unlock (/usr/local/lib/node_modules/npm/lib/utils/locker.js:44:11)
npm ERR! at cb (/usr/local/lib/node_modules/npm/lib/cache/add-local.js:30:5)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache/add-local.js:47:20
npm ERR! at /usr/local/lib/node_modules/npm/lib/utils/locker.js:30:7
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/lockfile/lockfile.js:167:38
npm ERR! at OpenReq.Req.done (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:144:5)
npm ERR! at OpenReq.done (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:64:22)
npm ERR! at Object.oncomplete (fs.js:107:15)
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" "-g" "grunt-cli"
npm ERR! cwd /Users/jonbeech
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/jonbeech/npm-debug.log
npm ERR! not ok code 0
➜ ~
Run sudo npm install -g grunt-cli you need sudo privileges when installing something globally, or remove the -g switch.
Try to avoid needing sudo with npm, there are likely going to be other permissions errors. Here is what I did after installing npm with sudo:
Uninstall NPM: sudo npm uninstall npm -g
Install NVM so that I can install npm without needing sudo (similar to RVM), see: https://github.com/creationix/nvm#installation
Install latest npm: nvm install stable
Clear caches npm cache clear
and then everything worked

can't install ionic framework

i'm trying to install ionic framework but i keep getting an error when i run "npm install -g ionic".
That's the error:
npm ERR! Error: No compatible version found: colors#'^0.6.2' npm ERR!
Valid install targets: npm ERR!
["0.3.0","0.5.0","0.5.1","0.6.0","0.6.0-1","0.6.1","0.6.2"] npm ERR!
at installTargetsError
(/home/myname/local/lib/node_modules/npm/lib/cache.js:685:10)
npm ERR! at
/home/myname/local/lib/node_modules/npm/lib/cache.js:607:10
npm ERR! at saved
(/home/myname/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7)
npm ERR! at Object.oncomplete (fs.js:107: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!
I already updatet node and cleared the cache.
Any idea?
Try Like this
sudo npm install -g cordova ionic
both Cordova and ionic at same time. makesure add to sudo
Have u tried
npm i -g cordova ionic
A lot of times its cordovas the problem..

Resources