Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Npm/Yarn Not installing properly and giving issues

node ./postinstall.js

ngrok - error unpacking binary Error: You cannot extract a file outside of the target path

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @expo/[email protected] postinstall: node ./postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @expo/[email protected] postinstall script.

  • OS: Windows 10
  • node: 8.11.4
  • npm: 6.4.0
like image 366
Niroj Maharjan Avatar asked Jan 26 '23 16:01

Niroj Maharjan


1 Answers

sudo npm i -g ngrok --unsafe-perm=true --allow-root

This will fix your issue.

like image 147
Saad Zafar Avatar answered Jan 31 '23 17:01

Saad Zafar