Redis_Proxy installation error in MAC - redis

I couldnt able to install redis proxy in my Mac Mini. I am getting below error message.
server:$ sudo npm install -g redis-proxy
npm http GET https://registry.npmjs.org/redis-proxy
npm http GET https://registry.npmjs.org/redis-proxy
npm http GET https://registry.npmjs.org/redis-proxy
npm ERR! Error: socket hang up
npm ERR! at SecurePair.error (tls.js:927:23)
npm ERR! at EncryptedStream.CryptoStream.done (tls.js:625:22)
npm ERR! at CleartextStream.read as _read
npm ERR! at CleartextStream.Readable.read (stream_readable.js:304:10)
npm ERR! at EncryptedStream.onCryptoStreamFinish (tls.js:292:47)
npm ERR! at EncryptedStream.g (events.js:175:14)
npm ERR! at EncryptedStream.EventEmitter.emit (events.js:117:20)
npm ERR! at finishMaybe (streamwritable.js:344:12)
npm ERR! at endWritable (streamwritable.js:351:3)
npm ERR! at EncryptedStream.Writable.end (streamwritable.js:329:5)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-#googlegroups.com

Want to change the npmjs url to GET http://registry.npmjs.org/redis-proxy

Related

Ionic - Error during creation of the project (postcss ??)

Someone can help me please, I am trying to use ionic.
I have run
sudo npm install -g #ionic/cli
Now I am running this command but I have an error
ionic start myApp tabs
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: postcss#8.2.14
npm ERR! node_modules/postcss
npm ERR! postcss#"8.2.14" from #angular-devkit/build-angular#0.1102.13
npm ERR! node_modules/#angular-devkit/build-angular
npm ERR! dev #angular-devkit/build-angular#"~0.1102.4" from the root project
npm ERR! peer #angular-devkit/build-angular#"^0.1102.4" from #ionic/angular-toolkit#3.1.1
npm ERR! node_modules/#ionic/angular-toolkit
npm ERR! dev #ionic/angular-toolkit#"^3.1.1" from the root project
npm ERR! peer postcss#"^8.1.0" from autoprefixer#10.2.4
npm ERR! node_modules/autoprefixer
npm ERR! autoprefixer#"10.2.4" from #angular-devkit/build-angular#0.1102.13
npm ERR! node_modules/#angular-devkit/build-angular
npm ERR! dev #angular-devkit/build-angular#"~0.1102.4" from the root project
npm ERR! 1 more (#ionic/angular-toolkit)
npm ERR! 9 more (css-loader, cssnano, postcss-import, postcss-loader, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer postcss#"^8.2.15" from cssnano-preset-default#5.1.1
npm ERR! node_modules/cssnano/node_modules/cssnano-preset-default
npm ERR! cssnano-preset-default#"^5.0.1" from cssnano#5.0.2
npm ERR! node_modules/cssnano
npm ERR! cssnano#"5.0.2" from #angular-devkit/build-angular#0.1102.13
npm ERR! node_modules/#angular-devkit/build-angular
npm ERR! dev #angular-devkit/build-angular#"~0.1102.4" from the root project
npm ERR! 1 more (#ionic/angular-toolkit)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/jonathan/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/jonathan/.npm/_logs/2021-05-21T19_38_40_797Z-debug.log
[ERROR] An error occurred while running subprocess npm.
npm i --save -E #capacitor/core#latest exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
I am stuck since a few hours, I do not understand what happens. Can you help me please ?
Finally I have found the solution, just running
npm install postcss#"^8.2.15"

installing package locally gives an error

When i am trying to install package i'm getting this error. In addition all other packages were installed without any problems. How could i solve this. If i'm changing flag to -g (globally) it works, but i need it to be in my project
npm install --save express-validator
npm http GET https://registry.npmjs.org/express-validator
npm http 304 https://registry.npmjs.org/express-validator
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/validator
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/validator
npm http GET https://registry.npmjs.org/types/bluebird
npm http GET https://registry.npmjs.org/types/express
npm http 404 https://registry.npmjs.org/types/bluebird
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR! at next (/usr/share/npm/lib/cache.js:687:35)
npm ERR! at /usr/share/npm/lib/cache.js:675:5
npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR! at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 3.19.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save" "express-validator"
npm ERR! cwd /home/prog/work/appJS
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! type non_object_property_load
npm http 404 https://registry.npmjs.org/types/express
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR! at next (/usr/share/npm/lib/cache.js:687:35)
npm ERR! at /usr/share/npm/lib/cache.js:675:5
npm ERR! at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR! at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 3.19.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--save" "express-validator"
npm ERR! cwd /home/prog/work/appJS
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! type non_object_property_load
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/prog/work/appJS/npm-debug.log
npm ERR! not ok code 0
This occurs when ur npm version is down or the library has been removed.
you need to update your npm version...!!
npm update npm#latest

travis-ci fails on typings install

I'm trying to get travis-ci going on my angular2 project, which uses npm to install typings, but travis-ci fails on typings install.
error
npm ERR! Linux 3.13.0-40-generic
npm ERR! argv "/home/travis/build/borysn/spring-boot-angular2/src/main/web/node/node-v6.2.0-linux-x64/bin/node" "/home/travis/build/borysn/spring-boot-angular2/src/main/web/node_modules/npm/bin/npm-cli.js" "install"
npm ERR! node v6.2.0
npm ERR! npm v3.9.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! spring-boot-angular2#0.0.1-SNAPSHOT postinstall: `typings install`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the spring-boot-angular2#0.0.1-SNAPSHOT postinstall script 'typings install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the spring-boot-angular2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs spring-boot-angular2
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls spring-boot-angular2
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/travis/build/borysn/spring-boot-angular2/src/main/web/npm-debug.log
:npmInstall FAILED
There were changes in typings 1.0 that I missed, make sure to read through updating from 0.x to 1.0

npm intstall: binding.node is missing

I tried to install npm on my local machine (Mac OS) but when I run npm start, it keeps giving me this error with node_sass. Even when I run
sudo npm install node_sass
it doesn't fix the problem.
Error: You probably need to execute `npm install` to install brunch plugins.
Error: `/Users/AnhLe/bloc/anh-jams/node_modules/sass-brunch/node_modules/node-sass/bin/darwin-x64-v8-3.28/binding.node` is missing. Try reinstalling `node-sass`?
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.0
npm ERR! npm v2.7.3
npm ERR! code ELIFECYCLE
npm ERR! bloc-rdio-skeleton#0.0.1 start: `brunch watch --server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bloc-rdio-skeleton#0.0.1 start script 'brunch watch --server'.
npm ERR! This is most likely a problem with the bloc-rdio-skeleton package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! brunch watch --server
npm ERR! You can get their info via:
npm ERR! npm owner ls bloc-rdio-skeleton
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/AnhLe/bloc/anh-jams/npm-debug.log
Looked around and these people are experiencing a similar error due to binding.node missing from SASS.
https://github.com/dlmanning/gulp-sass/issues/185

NPM installation error

I tried installing browserify (npm module).. I got following error-
praful#ubuntu:~/terminalcloud$ npm install -g browserify
npm http GET https://registry.npmjs.org/browserify
npm ERR! Error: failed to fetch from registry: browserify
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client /request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:412:12)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.onIncoming (http.js:1261:11)
npm ERR! at HTTPParser.onHeadersComplete (http.js:102:31)
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/praful/terminalcloud/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.8.0-29-generic
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "browserify"
npm ERR! cwd /home/praful/terminalcloud
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: browserify
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/praful/terminalcloud/npm-debug.log
npm not ok
I have installed npm package properly. This error occurs for any package that I try installing with npm. What should I do to?
Just wondering, have you tried
npm config set registry http://registry.npmjs.org/
as per this
The probleme comes from the registry you are using, it is using a secure connection with the hyper transfert text protocol, that might screw things up. https://registry.npmjs.org/browserify
you should use a simple registry that is easy fetchable :
sudo npm config set registry http://registry.npmjs.org/