Trying to install deepstream.io via npm - deepstream.io

I installed deepstreamhub via npm package, while using commands on node.js command prompt i got some error.
error:-no git binary found in $PATH.
I think i have properly installed npm package but i got this error while giving the commands(npm install deepstream.io).
I also searched for git folder but nowhere find that.
npm ERR: code ENOGIT
npm ERR: error while executing:
npm ERR: undefined ls-remoten -h -t ssh://git#github.com/uNetworking
npm ERR: No git binary found in $PATH
npm ERR: Failed using git.
npm ERR: Please check if you have git installed and in your path.
npm ERR: A complete log of this run can be found in:
npm ERR: C:\users\raki\AppData\Roaming\npm-cache_logs\2019-04-18T06

seems you don’t have git installed which some dependencies use. You can try using npm install —production deepstream.io and if that gives same error you can use the binary from https://github.com/deepstreamIO/deepstream.io/releases/tag/v3.2.4, install git or look at different install options for distributions on deepstream.io

It's npm install #deepstream/server for the server.
And npm install #deepstream/client for the client.

Related

Unable to install yarn through npm

I am trying to install yarn through npm on Mac by referring the documentation given here: https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable
npm install --global yarn
However when I run this command in terminal, I am getting the following error and the package is not being installed
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
I also ran this command but nothing happened. I am also seeing messages like - this operation was rejected by your operating system. I haven't used yarn in a year, and everything was working fine, but suddenly I am running into all this. Would love to know what I am doing wrong here and how I can resolve this.
This the error message that comes
The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
sudo npm install --location=global yarn
This command worked for me
As warning messages indicate, global -global and -local appear to be deprecated. However, instead of global, you can use the -location=global command.
-global and -local is deprecated.
Use This command:
npm install --location=global create-react-app
Instead of:
npm install -g create-react-app

gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/serverless/node_modules/snappy/.node-gyp'

I have an AWS CodeBuild Project which tries to install serverless framework but returns an error in the title however it says framework successfully installed. My understanding is that this fails to install the snappy module. Why is that and how can I resolve this?
The command I run in my buildspec.yaml is:
npm install -g serverless
And my user is:
/root
in the first error line:
gyp WARN EACCES current user ("nobody")...
seems node-gyp is trying to use another user instead of root,
we can find the issue discussed in the package repository:
https://github.com/nodejs/node-gyp/issues/1236
the most recent solutions seems to be:
npm_config_user=root npm install -g ...
to force/set the environment user to be used by npm install process

foundation for emails can't create new project with npm error

I'm new to foundation and trying to start foundation for emails sass version. I installed foundation-cli by npm globally with this version:
Foundation CLI version 2.2.5
Then I cd to an empty folder and try start a tester project by the following command
foundation new --framework emails
The project setup failed:
Downloading the project template... Done downloading!
Installing dependencies...
npm ERR! git rev-list -n1 4.0: fatal: ambiguous argument '4.0':
unknown revision or path not in the working tree. npm ERR! git
rev-list -n1 4.0: Use '--' to separate paths from revisions, like
this: npm ERR! git rev-list -n1 4.0: 'git [...] --
[...]' npm ERR! git rev-list -n1 4.0:
There were some problems during the installation.
✓ New project folder created. ✗ Node modules not installed. Try
running npm install manually. ✓ Bower components installed.
so I cd to the newly created project folder and npm install. It still failed.
npm ERR! code 1 npm ERR! Command failed: /usr/bin/git checkout 4.0 npm
ERR! error: pathspec '4.0' did not match any file(s) known to git. npm
Can anyone give me a hint how to resolve it??
The problem is that there was once an 4.0 tag for Gulp but it was deleted. Just run npm i gulp#next --save-dev or npm i gulp#4.0.0 --save-dev.
It was fixed in https://github.com/zurb/foundation-zurb-template/commit/a4472d7fc2409b43bbdc4df4dead7eb5e8e0e691 (see the change in package.json).
I had the same error.
First install gulp manually following these steps
https://gulpjs.org/getting-started.html.
Then if you get an error saying VCBuildtools arent't installed. Install them via
choco install vcbuildtools
After that it should work.
Try the manual install from here:
https://github.com/zurb/foundation-emails-template#manual-setup
Use Yarn instead of npm
Worked for me on a few different machines.

trouble installing an npm package

I'm trying to install react-navigation in a react-native app I'm working on and I keep getting this error....
Standard error:
npm ERR! code 128
npm ERR! Command failed: C:\John\Applications\cygwin\bin\git.EXE clone -q git://github.com/react-navigation/react-native-tab-view.git C:\Users\John\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-e11f65d1 --config core.longpaths=true
npm ERR! fatal: Invalid path '/cygdrive/c/Users/John/AppData/Roaming/npm-cache/_cacache/tmp/C:\Users\John\AppData\Roaming\npm-cache\_cacache\tmp\git-clone-e11f65d1': No such file or directory
npm ERR!
I have no problem with other packages, and I have git and it works. I have npm and it works.
So far I've manually deleted cpm cache from C:\Users\John\AppData\Roaming\npm_cache. Ran npm i -g npm Deleted package-lock.json
But nothing is working. Any ideas?
Figured it out. For my case at least I have git installed via cygwin and have cygwin in my path. I guess for some reason this package doesn't like that?
But I uninstalled git from cygwin and then installed it the 'normal' way and then it worked.

Can't install "react native cli" globally by using git bash

When I type in "npm install -g react-native-cli" at git bash I get following errors:
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at: npm ERR! https://github.com/npm/npm/issues
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\TOSHIBA İ5\AppData\Roaming\npm-cache_logs\2017-10-19T04_04_05_774Z-debug.log
I have already installed npm and added it's directory to PATH variable and when i type "which npm" at git bash it shows the directory so there is no problem about the installation of npm. But it still gives these errors and I am stuck.
Note: I am following the instructions on https://shift.infinite.red/getting-started-with-react-native-development-on-windows-90d85a72ae65
This could happen in some npm old versions. Make sure you are using an updated one.
npm install -g npm
Some linux distros have old versions of npm and node on their packages and you need to install it manually.
Edit: I just saw you have windows. Nevermind, still the old version could be a problem.