Unable to Install expo-cli - node.js

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.

Related

Unable to install #vue/cli

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

Issue with Global Install of Ngrok in MacOS and Arch Linux with NPM

Issue that I am facing:
I am trying to install ngrok globally on my MacOS. But when I install it gives me this:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ngrok#3.2.5 postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ngrok#3.2.5 postinstall 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! /Users/careaxiom/.npm/_logs/2019-10-23T10_16_49_550Z-debug.log
same with sudo
Its kind of in discussion on gitHub whats causing it but this works just fine for now
sudo npm install -g ngrok --unsafe-perm=true --allow-root

Error after running $ sudo npm install error is - Failed at the grpc#1.10.1 install script

I am running the hyperleder fabric IBM marble-blockchain example. After running
$ sudo npm install
I am getting an error:
npm ERR! grpc#1.10.1 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc#1.10.1 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! /home/kundankumar/.npm/_logs/2019-06-19T07_41_32_817Z-debug.log
try running npm rebuild. I had a similar error and it was because of some stale c++ object files that node was using

node-pre-gyp err while trying to npm install

While trying to install sqlite I'm getting an error running with:
npm v6.4.1
node v8.11.4
Windows 10
I tried to clean cache, reinstall nodejs/npm and some random things I found in other questions here(like setting msvs version, setting python config var etc.)
Error log:
kawthar#Romana MINGW64 ~/Desktop/Nodev/Artesã (JS)
$ npm install sqlite --save
> sqlite3#4.0.2 install C:\Users\kawthar\Desktop\Nodev\Artesã (JS)\node_modules\sqlite3
> node-pre-gyp install --fallback-to-build
'node-pre-gyp' is not recognized as an internal or external command,
operable program or batch file.
npm WARN qi-bot#1.0.0 No description
npm WARN qi-bot#1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3#4.0.2 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3#4.0.2 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! C:\Users\kawthar\AppData\Roaming\npm-cache\_logs\2018-08-30T22_28_34_617Z-debug.log
Use the following command and try again:
npm install -g node-gyp

mean stack yo generator gives error when creating a new app

I am using mac OSx yosemit and I have installed bitnami mean stack package.
when i want to create a new app using generator it gives an error about v8-debugger.
Here are steps;
1. sudo npm install -g yo
2. npm install -g generator-meanjs
3. mkdir test & cd test/
4. yo meanjs
this asks me some questions about app and then starts to install required packages. It end with following error
> v8-profiler#5.2.12 install /Users/tahir/Developer/mean_stack/yo_app/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-profiler
> node-pre-gyp install --fallback-to-build
[v8-profiler] Success: "/Users/tahir/Developer/mean_stack/yo_app/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-profiler/build/profiler/v5.2.12/node-v14-darwin-x64/profiler.node" is installed via remote
npm ERR! Darwin 14.5.0
npm ERR! argv "/Applications/meanstack-3.0.4-2/nodejs/bin/.node.bin" "/Applications/meanstack-3.0.4-2/nodejs/bin/npm" "install"
npm ERR! node v0.12.7
npm ERR! npm v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! v8-debug#0.4.6 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the v8-debug#0.4.6 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the v8-debug package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls v8-debug
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/tahir/Developer/mean_stack/yo_app/npm-debug.log
I can't figure out what is problem I referred to some solutions like a discussion here https://github.com/node-inspector/node-inspector/issues/662 but unable to solve this issue.
Thanks for your help!

Resources