1 개요[ | ]
- npm init vue@latest
Console
Copy
root@localhost:~# node -v
v16.14.0
root@localhost:~# npm -v
8.3.1
Console
Copy
root@localhost:~# npm init vue@latest
Need to install the following packages:
create-vue@latest
Ok to proceed? (y)
Vue.js - The Progressive JavaScript Framework
✔ Project name: … hello
✔ Add TypeScript? … No / Yes
✔ Add JSX Support? … No / Yes
✔ Add Vue Router for Single Page Application development? … No / Yes
✔ Add Pinia for state management? … No / Yes
✔ Add Vitest for Unit Testing? … No / Yes
✔ Add Cypress for both Unit and End-to-End testing? … No / Yes
✔ Add ESLint for code quality? … No / Yes
Scaffolding project in /root/hello...
Done. Now run:
cd hello
npm install
npm run dev
npm notice
npm notice New minor version of npm available! 8.3.1 -
Console
Copy
root@localhost:~# cd hello
root@localhost:~/hello# npm install
added 32 packages, and audited 33 packages in 29s
4 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Console
Copy
root@localhost:~/hello# npm run dev
> hello@0.0.0 dev
> vite
Pre-bundling dependencies:
vue
(this will be run only when your dependencies or config have changed)
vite v2.8.2 dev server running at:
> Local: http://localhost:3000/
> Network: use `--host` to expose
ready in 9994ms.
^C
Console
Copy
root@localhost:~/hello# ll
total 88
drwxr-xr-x 1 root root 4096 Feb 16 01:38 .
drwxr-xr-x 1 root root 4096 Feb 16 01:39 ..
-rw-r--r-- 1 root root 302 Feb 16 01:37 .gitignore
-rw-r--r-- 1 root root 337 Feb 16 01:37 index.html
drwxr-xr-x 1 root root 4096 Feb 16 01:45 node_modules
-rw-r--r-- 1 root root 288 Feb 16 01:37 package.json
-rw-r--r-- 1 root root 41188 Feb 16 01:38 package-lock.json
drwxr-xr-x 1 root root 4096 Feb 16 01:37 public
-rw-r--r-- 1 root root 653 Feb 16 01:37 README.md
drwxr-xr-x 1 root root 4096 Feb 16 01:37 src
-rw-r--r-- 1 root root 295 Feb 16 01:37 vite.config.js
drwxr-xr-x 1 root root 4096 Feb 16 01:37 .vscode
2 같이 보기[ | ]
3 참고[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.