Monday, 25 September 2017

Error: The specified module could not be found.module.js:434 return process.dlopen(module, path._makeLong(filename)); ^

Error: %1 is not a valid Win32 application.
\\?\C:\Users\\Documents\latest code\node_modules\java\bu
ild\Release\nodejavabridge_bindings.node
    at Error (native)
    at Object.Module._extensions..node (module.js:597:18)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\\Documents\latest codePI\node_modules\java\lib\nodeJavaBridge.js:21:16)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\\Documents\latest code\
PI\node_modules\java\index.js:2:18)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)

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

Monday, 28 August 2017

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"



Tuesday, 13 June 2017

npm install angular-cli -g issue

> node-sass@4.5.3 install C:\Users\\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\node-sass                                        > node scripts/install.js                                                                                                                                                                                                                                                                                       Cached binary found at C:\Users\\AppData\Roaming\npm-cache\node-sass\4.5.3\win32-x64-46_binding.node                                                                                                                                                                                                    > node-sass@4.5.3 postinstall C:\Users\\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\node-sass                                    > node scripts/build.js                                                                                                                                                                                                                                                                                         Binary found at C:\Users\\AppData\Roaming\npm\node_modules\@angular\cli\node_modules\node-sass\vendor\win32-x64-46\binding.node                 Testing binary                                                                                                                                          Binary is fine                                                                                                                                          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" "@angular/cli"       npm ERR! node v4.5.0                                                                                                                                    npm ERR! npm  v2.15.9                                                                                                                                   npm ERR! code ETARGET                                                                                                                                                                                                                                                                                           npm ERR! notarget No compatible version found: balanced-match@'>=1.0.0 <2.0.0'                                                                          npm ERR! notarget Valid install targets:                                                                                                                npm ERR! notarget ["0.0.0","0.0.1","0.1.0","0.2.0","0.2.1","0.3.0","0.4.0","0.4.1","0.4.2"]                                                             npm ERR! notarget                                                                                                                                       npm ERR! notarget This is most likely not a problem with npm itself.                                                                                    npm ERR! notarget In most cases you or one of your dependencies are requesting                                                                          npm ERR! notarget a package version that doesn't exist.                                                                                                 npm ERR! notarget                                                                                                                                       npm ERR! notarget It was specified as a dependency of 'brace-expansion'                                                                                 npm ERR! notarget                                                                                                                                                                                                                                                                                               npm ERR! Please include the following file with any support request:                                                                                    npm ERR!master\angular-src\npm-debug.log                                                                                                                                                                                                                                 

Wednesday, 12 October 2016