npm install node-rtsp-stream
/root
└─┬ node-rtsp-stream@0.0.9
├── UNMET PEER DEPENDENCY bufferutil@^4.0.1
├── UNMET PEER DEPENDENCY utf-8-validate@^5.0.2
└── ws@7.4.6
npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'
npm WARN ws@7.4.6 requires a peer of bufferutil@^4.0.1 but none was installed.
npm WARN ws@7.4.6 requires a peer of utf-8-validate@^5.0.2 but none was installed.
npm WARN root No description
npm WARN root No repository field.
npm WARN root No README data
npm WARN root No license field.
npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See `npm help json` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg> --save` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
name: (root)
version: (1.0.0)
description:
entry point: (index.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to /root/package.json:
{
"name": "root",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"node-gyp-build": "^4.2.3",
"node-rtsp-stream": "^0.0.9",
"bufferutil": "^4.0.3",
"utf-8-validate": "^5.0.5"
},
"devDependencies": {},
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"author": "",
"license": "ISC"
}
Is this ok? (yes) yes
[root@c01 ~]#
[root@c01 ~]# npm install node-rtsp-stream
root@1.0.0 /root
└── node-rtsp-stream@0.0.9
npm WARN root@1.0.0 No description
npm WARN root@1.0.0 No repository field.
package.json 에 다음의 내용을 추가
"private": true
npm install ws
npm index.js