2020年10月29日

Express ERR

https://gist.github.com/PhilOwen/7917dcb9791edd5e2916#file-package-json-L6

root@localhost ap1]# cd t5
[root@localhost t5]# npm install
npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated constantinople@3.0.2: Please update to at least constantinople 3.1.1
npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
npm notice created a lockfile as package-lock.json. You should commit this file.
added 100 packages from 139 contributors and audited 101 packages in 3.688s
found 4 vulnerabilities (3 low, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
[root@localhost t5]# DEBUG=t5:* npm start
npm ERR! missing script: start

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-10-29T08_01_06_109Z-debug.log
[root@localhost t5]#
Screenshot from 2020-10-29 17-02-58.png
posted by a23 at 17:03| Comment(0) | JavaScript

Express

express t5

cd t5

npm install

DEBUG=helloworld:* npm start

posted by a23 at 16:57| Comment(0) | JavaScript

Express



npm install pg-promise
Screenshot from 2020-10-29 16-49-38.png
npm install sqlite3
Screenshot from 2020-10-29 16-50-10.png
npm install tedious
Screenshot from 2020-10-29 16-51-08.png


posted by a23 at 16:53| Comment(0) | JavaScript

node.js(express)でDB(Postgresql)にアクセス




【Node.js入門】PostgreSQLに接続してデータを操作するためのチュートリアル!

posted by a23 at 16:28| Comment(0) | JavaScript

npm install express

npm install express-generator -g

Screenshot from 2020-10-29 16-07-03.png

express helloworld
Screenshot from 2020-10-29 16-12-07.png


cd helloworld

npm install
Screenshot from 2020-10-29 16-15-09.png


DEBUG=helloworld:* npm start
Screenshot from 2020-10-29 16-16-05.png

127.0.0.1:3000
Screenshot from 2020-10-29 16-17-18.png

-----------------
firewall-cmd --add-port=5432/tcp --zone=public --permanent
firewall-cmd --reload








https://developer.mozilla.org/ja/docs/Learn/Server-side/Express_Nodejs/development_environment
posted by a23 at 16:08| Comment(0) | JavaScript