๐ซ npm install์ด ์ ๋๋ ๊ฒฝ์ฐ
Vue.js ํ๋ก์ ํธ๋ฅผ ์์ํ๊ธฐ ์์ node๋ฅผ ์ด์ฉํด Mac์ lite-server๋ฅผ ์ค์นํ๋ ค๋๋ฐ ์๋์ ๊ฐ์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ฉฐ ์ค์น๊ฐ ๋์ง ์์๋ค.
suyeonglee โบ ~ โบ npm install -g lite-server
npm notice
npm notice New minor version of npm available! 8.5.5 -> 8.8.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.8.0
npm notice Run npm install -g npm@8.8.0 to update!
npm notice
npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /usr/local/lib/node_modules/lite-server
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/lite-server'
npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/lite-server'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/usr/local/lib/node_modules/lite-server'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/suyeonglee/.npm/_logs/2022-04-28T13_13_06_240Z-debug-0.log
์ฒซ ์ค์ -g
์ ์ญ ์ค์น ์ต์
๋๋ฌธ์ ์๊ธด ๊ถํ ์๋ฌ์๋ค. ์ด ๊ฒฝ์ฐ ๊ฐ๋จํ๊ฒ ํด๊ฒฐํ ์ ์๋ค.
โ ๊ด๋ฆฌ์ ๊ถํ์ผ๋ก ์ค์นํ๊ธฐ
npm install
์์ sudo
๋ฅผ ๋ถ์ฌ ๊ด๋ฆฌ์ ๊ถํ์ผ๋ก ์ค์นํ๋ฉด ๋ฌธ์ ํด๊ฒฐ~! Password๋ Mac์ ๋น๋ฐ๋ฒํธ๋ฅผ ์
๋ ฅํ๋ฉด ๋๋ค.
# ๋ช
๋ น์ด
sudo npm install -g lite-server
# ์ค์ ๋ก๊ทธ
โ suyeonglee โบ ~ โบ sudo npm install -g lite-server
Password:
added 174 packages, and audited 175 packages in 9s
6 packages are looking for funding
run `npm fund` for details
3 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
๋ฐ์ํ
'Web > Issues' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์๋ณด์นด๋์๋์ ] ๋ทํ PHP ๋ฒ์ ์๋ฌ : Uncaught mysqli_sql_exception ~ (0) | 2024.01.17 |
---|---|
[ZeroBoard4] ๊ด๋ฆฌ์ ๋ฑ๋ก, ๋ก๊ทธ์ธ ์ค๋ฅ ์(password) (2) | 2024.01.16 |
[HTML] A 'return' statement can only be used within a function body. (0) | 2022.05.05 |
[Jekyll] Jekyll post not generated (0) | 2022.04.11 |