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..
Related
I'm new to coding and I'm just doing the cryptozombies.io tutorial. I finished all my contracts and need to now deploy the contract on loom.
I use:
node: v16.17.1
ubuntu: Ubuntu 20.04.5 LTS
npm: 9.4.2
I installed truffle, axios, bn.js using npm with no problem. However, when I run
npm install loom-truffle-provider
I get the following error
npm ERR! code 1
npm ERR! git dep preparation failed
npm ERR! command /home/mwisni/.nvm/versions/node/v16.17.1/bin/node /home/mwisni/.nvm/versions/node/v16.17.1/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/mwisni/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! npm WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code 1
npm ERR! npm ERR! The git reference could not be found
npm ERR! npm ERR! command git --no-replace-objects checkout 4.0
npm ERR! npm ERR! error: pathspec '4.0' did not match any file(s) known to git
npm ERR!
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR! /home/mwisni/.npm/_logs/2023-02-15T22_06_57_897Z-debug-0.log
npm ERR! A complete log of this run can be found in:
npm ERR! /home/mwisni/.npm/_logs/2023-02-15T22_06_27_913Z-debug-0.log
How can I get to install my loom? Any help will be greatly appreciated. :)
I tried to uninstall and reinstall loom-truffle-provider
I tired npm cache clean --force
I tired different wifi connections as well so the network is not a problem.
I am trying to install expo-cli on my mac but when I run the command npm install -g expo-cli I get this error
npm ERR! Could not resolve dependency: npm ERR! peerOptional type-fest#"^0.13.1" from #pmmmwh/react-refresh-webpack-plugin#0.3.3 npm ERR! node_modules/expo-cli/node_modules/#pmmmwh/react-refresh-webpack-plugin npm ERR! #pmmmwh/react-refresh-webpack-plugin#"^0.3.3" from #expo/webpack-config#0.12.66 npm ERR! node_modules/expo-cli/node_modules/#expo/webpack-config npm ERR! #expo/webpack-config#"0.12.66" from xdl#59.0.32 npm ERR! node_modules/expo-cli/node_modules/xdl npm ERR! xdl#"59.0.32" from expo-cli#4.4.1 npm ERR! node_modules/expo-cli npm ERR! 1 more (#expo/dev-tools)
I tried running the command with --force but I got the same error. Is there a way to fix this?
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
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.
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