일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 네이버카페
- ue4dumper
- Frida
- 취약점
- Sequoia
- XSS
- 로맨스스캠
- intelmac
- 많다..
- 보이스피싱 #대검찰청 #명의도용 #비밀번호 #계좌번호 #공공기관 #가짜검찰청
- 허리디스크
- esbuild
- 척추관협착증
- MongoDB #NoSQL #CreateUser #DropUser #mongod #mognod.conf
- open redirect
- speed-measure-webpack-plugin
- 변태는
- shell_gpt
- Malware Sample
- react
- 안전결제
- CJ대한통운 #쿠팡 #통관번호오류 #통관고유번호오류 #안주원팀장 #모건인베스트
- 중고나라
- CryptoJS
- 채팅환전사기
- 거래사기
- self-signed
- NUGU
- ssrf
- 모의해킹
- Today
- Total
annyoung
define npm global path on mac 본문
This post will be handling solve to Command not found npm packages when you installed that.
nopsled@playground:~/VisualProjects/react-native-projects (=`ω´=)$ expo -bash: expo: command not found |
I'm tring to use expo-cli on my mac. but it will be occur error when i typing like that. so can't be use this command.
* I was installed that using by global options.
nopsled@playground:~/VisualProjects/react-native-projects (=`ω´=)$ npm bin -g
nopsled@playground:~/VisualProjects/react-native-projects (=`ω´=)$ npm config get prefix
nopsled@playground:~/VisualProjects/react-native-projects (=`ω´=)$ npm bin
nopsled@playground:~/VisualProjects/react-native-projects (=`ω´=)$ npm bin -g |
Finally, i understood this path configuration fucked.
$ npm config set prefix /usr/local/Cellar/node/11.4.0/lib/node_modules/node/bin |
You can set npm global path by manually typed:
`npm config set prefix`
If you done that command, you shoulde be modify your .bash_profile or /etc/profile.
# MacPorts Installer addition on 2015-09-21_at_21:31:26: adding an appropriate PATH variable for use with MacPorts. #export PATH="/usr/local/bin/:/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:/usr/local/mysql/support-files:$PATH" export PATH="/usr/local/bin/:/opt/local/bin:/opt/local/sbin:$PATH" #export PATH=$PATH:~/.npm-global/bin export PATH=/usr/local/Cellar/node/11.4.0/lib/node_modules/node/bin:$PATH # Finished adapting your PATH environment variable for use with MacPorts. |
Add your location which npm global path to your bash_history at last line.
and applying your bash_profile using this:
$ source /etc/profile
or
$ source ~/.bash_profile
nopsled@playground:~/VisualProjects/react-native-projects (=`ω´=)$ expo init hello ? Choose a template: (Use arrow keys) ----- Managed workflow ----- ❯ blank minimal dependencies to run and an empty root component blank (TypeScript) same as blank but with TypeScript configuration tabs several example screens and tabs using react-navigation ----- Bare workflow ----- bare-minimum minimal setup for using unimodules |
Finally, you can use global npm executable binaries.
삽질 끝.
'운영체제' 카테고리의 다른 글
aws ec2 ssh 비밀번호 설정 (22) | 2024.08.02 |
---|---|
Mac apache 2.4.34 VirtualHost, ProxyPass 적용하기 (0) | 2019.01.14 |
/etc/sudoers 권한 변경 실패시 (4) | 2018.12.10 |
linux UTC to KST (also hardware time too) (0) | 2018.06.05 |
crontab checker (0) | 2018.04.26 |