sintaxi / surge

CLI for the surge.sh CDN
https://surge.sh
2.87k stars 136 forks source link

Surge command not found #367

Closed ricardogouveia3 closed 5 years ago

ricardogouveia3 commented 5 years ago

I'm running the default installation process but not been able to execute it

> npm install --global surge
npm WARN deprecated du@0.1.0: no longer maintained
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated boom@4.3.1: This version is no longer maintained. Please upgrade to the latest version.
/Users/patriciauessler/.npm-global/bin/surge -> /Users/patriciauessler/.npm-global/lib/node_modules/surge/lib/cli.js
+ surge@0.20.1
updated 1 package in 6.377s

> surge
zsh: command not found: surge

Already tried to run it on sudo. Haven't found any instructions to include surge on path if needed.

ricardogouveia3 commented 5 years ago

I had a mistype on my .zshrc file that was affecting every npm installed package. Fixed now.

IF you have the same issue: Check if the return of your echo $PATH includes /Users/YOUR-USERNAME/.npm-global/bin