| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 |
- Sequoia
- Malware Sample
- 허리디스크
- react2shell
- ssrf
- S3
- intelmac
- 안전결제
- jeb_mcp
- self-signed
- 채팅환전사기
- 네이버카페
- AWS
- Frida
- LFI
- 중고나라
- 내부확산
- 취약점
- 모의해킹
- 많다..
- aes
- mitmproxy
- 변태는
- XSS
- EC2
- 척추관협착증
- ue4dumper
- shell_gpt
- cve-2025-55182
- 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.
삽질 끝.
'운영체제' 카테고리의 다른 글
| vimrc 설정 (0) | 2025.11.07 |
|---|---|
| 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 |