Node Initialialization
Node Initialialization
C:\Users\ctumlos\AppData\Roaming\npm\express ->
C:\Users\ctumlos\AppData\Roaming\npm\node_modules\express-generator\bin\express-cli.js
C:\Users\ctumlos>express myapp
warning: the default view engine will not be jade in future releases
create : myapp\
create : myapp\public\
create : myapp\public\javascripts\
create : myapp\public\images\
create : myapp\public\stylesheets\
create : myapp\public\stylesheets\style.css
create : myapp\routes\
create : myapp\routes\index.js
create : myapp\routes\users.js
create : myapp\views\
create : myapp\views\error.jade
create : myapp\views\index.jade
create : myapp\views\layout.jade
create : myapp\app.js
create : myapp\package.json
create : myapp\bin\
create : myapp\bin\www
change directory:
> cd myapp
install dependencies:
C:\Users\ctumlos>cd myapp
C:\Users\ctumlos\myapp>node app.js
internal/modules/cjs/loader.js:583
throw err;
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\ctumlos\myapp\app.js:1:81)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
C:\Users\ctumlos\myapp>npm install
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of
pug instead of jade
npm notice created a lockfile as package-lock.json. You should commit this file.
added 99 packages from 139 contributors and audited 194 packages in 20.521s
run `npm audit fix` to fix them, or `npm audit` for details
C:\Users\ctumlos\myapp>node app.js
C:\Users\ctumlos\myapp>node app.js
C:\Users\ctumlos\myapp>node app.js
C:\Users\ctumlos\myapp>npm init
It only covers the most common items, and tries to guess sensible defaults.
version: (1.0.0) 1
description:
test command:
git repository:
keywords:
author:
license: (ISC)
"name": "app",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
},
"author": "",
"license": "ISC"
Directory of C:\Users\ctumlos\myapp
C:\Users\ctumlos\myapp>node app.js
internal/modules/cjs/loader.js:583
throw err;
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\ctumlos\myapp\app.js:1:79)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
C:\Users\ctumlos\myapp>npm install express --save
npm notice created a lockfile as package-lock.json. You should commit this file.
found 0 vulnerabilities
found 0 vulnerabilities
found 0 vulnerabilities
C:\Users\ctumlos\myapp>
C:\Users\ctumlos\myapp>npm install request-promise --save
npm WARN [email protected] requires a peer of request@^2.34 but none is installed. You must
install peer dependencies yourself.
npm WARN [email protected] requires a peer of request@^2.34 but none is installed. You
must install peer dependencies yourself.
found 0 vulnerabilities
C:\Users\ctumlos\myapp>node app.js
###
###
###
C:\Users\ctumlos\myapp\node_modules\request-promise\lib\rp.js:23
throw err;
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at C:\Users\ctumlos\myapp\node_modules\request-promise\lib\rp.js:11:16
at module.exports (C:\Users\ctumlos\myapp\node_modules\stealthy-require\lib\index.js:62:23)
at Object.<anonymous> (C:\Users\ctumlos\myapp\node_modules\request-promise\lib\rp.js:10:19)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (C:\Users\ctumlos\myapp\app.js:5:21)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:279:19)
found 0 vulnerabilities
C:\Users\ctumlos\myapp>node app.js
^C
C:\Users\ctumlos\myapp>node app.js
hello world
hello world
^C
C:\Users\ctumlos\myapp>node app.js
hello world
GET https://dev27740.service-now.com/api/now/table/sc_req_item?
sysparm_query=sys_id
%3Daeed229047801200e0ef563dbb9a71c2&sysparm_limit=10
sys_id-RITM
parent.sys_id
6eed229047801200e0ef563dbb9a71c2
Request{
Value=6eed229047801200e0ef563dbb9a71c2 for WO