ยง2024-06-01
npm init -y
alexlai@n2Bookworm:~$ cd nodejs_project/
alexlai@n2Bookworm:~/nodejs_project$ mkdir syslog_ng_capped_collection && cd $_
alexlai@n2Bookworm:~/nodejs_project/syslog_ng_capped_collection$ which node
/run/user/1026/fnm_multishells/13087_1717215984920/bin/node
alexlai@n2Bookworm:~/nodejs_project/syslog_ng_capped_collection$ node -v
v22.2.0
alexlai@n2Bookworm:~/nodejs_project/syslog_ng_capped_collection$ npm -v
10.7.0
alexlai@n2Bookworm:~/nodejs_project/syslog_ng_capped_collection$ npm init -y
Wrote to /home/alexlai/nodejs_project/syslog_ng_capped_collection/package.json:
{
"name": "syslog_ng_capped_collection",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": ""
}
alexlai@n2Bookworm:~/nodejs_project/syslog_ng_capped_collection$ ls -l
total 4
-rw-r--r-- 1 alexlai alexlai 241 Jun 1 12:46 package.json