"{ "error":"invalid_request", "error_description":"Cannot determine the request type" }"
Wednesday, 30 August 2017
Tuesday, 29 August 2017
npm install -g npm ERR! Error: EPERM: operation not permitted, open
C:\Users\Srinivas>npm install -g bower
npm WARN deprecated bower@1.8.0: ..psst! While Bower is maintained, we recommend Yarn and Webpack for *new* front-end projects! Yarn's advantage is security and reliability, and Webpack's is support for both CommonJS and AMD projects. Currently there
's no migration path, but please help to create it: https://github.com/bower/bower/issues/2467
npm ERR! tar.unpack untar error C:\Users\Srinivas\AppData\Roaming\npm-cache\bower\1.8.0\package.tgz
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! path C:\Users\Srinivas\AppData\Roaming\npm\node_modules\bower\lib\config.js
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open 'C:\Users\Srinivas\AppData\Roaming\npm\node_modules\bower\lib\config.js'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, open 'C:\Users\Srinivas\AppData\Roaming\npm\node_modules\bower\lib\config.js']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\\Users\\Srinivas\\AppData\\Roaming\\npm\\node_modules\\bower\\lib\\config.js' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Srinivas\npm-debug.log
Solution :
clean npm cache
C:\Users\Srinivas>npm cache clean
Then try
C:\Users\Srinivas>npm install -g bower
npm WARN deprecated bower@1.8.0: ..psst! While Bower is maintained, we recommend Yarn and Webpack for *new* front-end projects! Yarn's advantage is security and reliability, and We
's no migration path, but please help to create it: https://github.com/bower/bower/issues/2467
C:\Users\Srinivas\AppData\Roaming\npm\bower -> C:\Users\Srinivas\AppData\Roaming\npm\node_modules\bower\bin\bower
bower@1.8.0 C:\Users\Srinivas\AppData\Roaming\npm\node_modules\bower
npm WARN deprecated bower@1.8.0: ..psst! While Bower is maintained, we recommend Yarn and Webpack for *new* front-end projects! Yarn's advantage is security and reliability, and Webpack's is support for both CommonJS and AMD projects. Currently there
's no migration path, but please help to create it: https://github.com/bower/bower/issues/2467
npm ERR! tar.unpack untar error C:\Users\Srinivas\AppData\Roaming\npm-cache\bower\1.8.0\package.tgz
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "bower"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! path C:\Users\Srinivas\AppData\Roaming\npm\node_modules\bower\lib\config.js
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall open
npm ERR! Error: EPERM: operation not permitted, open 'C:\Users\Srinivas\AppData\Roaming\npm\node_modules\bower\lib\config.js'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, open 'C:\Users\Srinivas\AppData\Roaming\npm\node_modules\bower\lib\config.js']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\\Users\\Srinivas\\AppData\\Roaming\\npm\\node_modules\\bower\\lib\\config.js' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Srinivas\npm-debug.log
Solution :
clean npm cache
C:\Users\Srinivas>npm cache clean
Then try
C:\Users\Srinivas>npm install -g bower
npm WARN deprecated bower@1.8.0: ..psst! While Bower is maintained, we recommend Yarn and Webpack for *new* front-end projects! Yarn's advantage is security and reliability, and We
's no migration path, but please help to create it: https://github.com/bower/bower/issues/2467
C:\Users\Srinivas\AppData\Roaming\npm\bower -> C:\Users\Srinivas\AppData\Roaming\npm\node_modules\bower\bin\bower
bower@1.8.0 C:\Users\Srinivas\AppData\Roaming\npm\node_modules\bower
Monday, 28 August 2017
Nodejs self signed certificate issues
{ [Error: unable to verify the first certificate] code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }
{ [Error: self signed certificate] code: 'DEPTH_ZERO_SELF_SIGNED_CERT' }
{ [Error: self signed certificate] code: 'DEPTH_ZERO_SELF_SIGNED_CERT' }
Friday, 25 August 2017
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/Users/srinivasnidadavolu/Downloads/testapp/app.js:42:20)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:974:3
solution:
Declare strict mode at the beginning of the function or constant to use Block-scoped declarations.
"use strict"