snyk wizard error while creating MEAN app - mean.io

i am new to MEAN stack development. while i am running snyk wizard i am getting the following error. What does it actually mean and how to solve it?
Snyk couldn't patch the specified vulnerabilities because GNU's patch is not available. Please install 'patch' and try again.

I assume you are using gnu/Linux and don’t have patch installed. I am also assuming that snyk uses patch to fix files for vulnerabilities. Try installing patch and running the command again

Related

Im having diffuclty installing Apache-age

Im follow the tutorial from https://age.apache.org/age-manual/master/intro/setup.html to install the apache-age. The first path on my $PATH variable is not the one from the pg_config so i used the make PG_CONFIG=/path/to/postgres/bin/pg_config install command and putting the pg_config path myself. But im getting this error : (https://i.stack.imgur.com/ov0G3.png)
I tried using sudo privilages but it didnt help, this seems to be a C syntax error or something like that
See with the command pg_config (or /path/to/postgres/bin/pg_config, if it's not on your $PATH) what is the version of PostgreSQL you're using.
If you're on version 12, and if you're cloning Apache AGE from Github, you must
git checkout AGE_PG12.1.0_ALPHA
before installing Apache AGE, as, like the branch name says, the support for version 12 is still in alpha state.
You are getting this error because most probably you are cloning the master branch, and I think by mistake development code was pushed to master branch.
You should use the release version's source code to install.
You might be having this problem because PostgreSQL and Apache AGE are not compatible with each other. Please follow the following to install Apache AGE from source Code.
How to install AGE extension of postgresql from source code in ubuntu?

Cannot install QuickCheck for Haskell: "runInteractiveProcess: permission denied"

When I run the commands
cabal update
cabal install QuickCheck
on windows powershell, or
cabal install --lib --package-env . QuickCheck
I get runInteractiveProcess: permission denied. I have found that I need to run "/scripts/securetmp" and un-secure my /tmp. How do I do that? What does it mean to run /scripts/securetmp?
I was asked for the link to the advice, here are 2 links from 2 different people who said the same:
1.In one of the answers on a similar question on StackOverflow:
Can't install and use Cabal (Haskell) on CentOS Server - zlib-0.5.4.1 failed during the building phase
2.On a website, though it's in Russian, but says the same thing:
https://coderoad.ru/24461456/%D0%9D%D0%B5-%D1%83%D0%B4%D0%B0%D0%B5%D1%82%D1%81%D1%8F-%D1%83%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C-%D0%B8-%D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D1%82%D1%8C-Cabal-Haskell-%D0%BD%D0%B0-%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B5-CentOS-%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B0
On both those links there are other answers, that talk about running some bootstrap.sh script. That might be another solution, but I don't understand how to do it.
Try to install it using :cabal --http-transport=plain-http install QuickCheck, with this you will be forcing cabal not to use powershell's webclient, it worked for me.

How do I install the hg-git plugin on Debian Stretch?

Debian Jessie, as well as sid, have a mercurial-git package which contains the hg-git plugin. However, this package was (auto-)removed from Debian Stretch to to a release-critical bug.
But - I need it installed and running. Surely this should be possible, right?
Well, I followed the installation instructions on the plugin page:
I ran apt-get install python-setuptools python-setuptools-git python4-setuptools python3-setuptools-git
I ran easy_install hg-git and it seemed to work
But still, when I run various mercurial operations I get, as the first line, the error message:
*** failed to import extension hgext.git: No module named git
(regardless of whether I'm doing anything git-related or not.)
My questions:
Why is this happening?
What do I need to do in order to make the error message go away while having hggit working?
Now,
How do I correctly install dulwich to get hg-git working on Windows?
Apparently, that critical bug doesn't manifest always (and perhaps only under very specific circumstances), so you can try installing the Debian sid version of the mercurial-git package (that is, version 0.8.11-1 at the time of writing). There's a SuperUser question about how to do this:
https://linuxaria.com/howto/how-to-install-a-single-package-from-debian-sid-or-debian-testing
my personal opinion in this case is to simply install the .deb file, which you can get from here (it's not platform-specific; at the link you'll need to choose a mirror.) That makes the error message go away, at least assuming you have:
[extensions]
hgext.bookmarks =
hggit =
in your ~/.hgrc file.

What would I need to run in order to install task "fix scss"?

I am working on a team task. When instructed by a piece of documentation to run grunt fix scss I did so, and I received the following message:
jit-grunt: Plugin for the "fix" task not found. If you have installed
the plugin already, please setting the static mapping. See
https://github.com/shootaroo/jit-grunt#static-mappings
Warning: Task "fix" failed. Use --force to continue.
The problem is that I have no idea whether the plugin they mention is installed. What command would I need to run in order to install this plugin?
The problem was that I was running grunt fix scss rather than grunt fix-scss (with a hyphen).
Once I did the latter, I got more meaningful output.

jenkins EnvInject plugin does not install

I have jenkins 1.532.1.
When I want to install the EnvInject Plugin, it shows a warning:
This plugin makes it possible to have an isolated environment for your
jobs. Warning: This plugin is built for Jenkins 1.445 or newer. It may
or may not work in your Jenkins.
I go ahead and install it. It says successful but then I can see that it is not installed.
I've already tried restarting jenkins.
Does anyone know whether this plugin was discontinued or whether I will have to downgrade jenkins or any other suggestions?
I got it.
Downloaded the latest jenkins.war and replaced the current one with it.
On ubuntu, here are the steps:
sudo /usr/local/etc/rc.d/jenkins stop
cp jenkins.war /usr/share/jenkins/
sudo /usr/local/etc/rc.d/jenkins start