Cannot invoke instructions. Missing package "#adonisjs/core" - adonis.js

I am trying do:
npm init adonis-ts-app blog
And I am getting this issue: Cannot invoke instructions. Missing package "#adonisjs/core"
Can someone help me about this issue? I am using AdonisV5

I installed the GIT com sudo apt install git and solved it!!

Related

AWS CodeCommit with git-remote-codecommit

Im using windows and im trying to use git-remote-codecommit.
steps for HTTPS Connections to AWS CodeCommit with git-remote-codecommit.
https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-git-remote-codecommit.html
While fetching , this error shows:
git clone codecommit://MyRepositoryName
git: 'remote-codecommit' is not a git command. See 'git --help'
please help..
The other solutions did not work for me. I tried following https://docs.aws.amazon.com/codecommit/latest/userguide/troubleshooting-grc.html#:~:text=a%20CodeCommit%20repository-,I%20see%20an%20error%3A%20git%3A%20%27remote-codecommit%27%20is%20not%20a%20git%20command,-Problem%3A%20When%20you but it did not work as well.
What ended up working as doing a brew install git-remote-codecommit :)
$ which git-remote-codecommit
/opt/homebrew/bin/git-remote-codecommit
I am using a M1 Big Sur if that matters.
I had a similar issue. It turns out that somehow the git-remote-codecommit extension was somehow installed but broken.
I fixed it by first
uninstalling: pip3 uninstall git-remote-codecommit
reinstalling: pip3 install git-remote-codecommit
The install will check to see if Python3 is in your $PATH if not you'll need to add it.
This fixed the problem for me.
Need to run this command in terminal to solve this problem pip3 install git-remote-codecommit or pip install git-remote-codecommit
I was also facing this issue but it work after Force install git-remote-codecommit
pip install git-remote-codecommit --force
The same solution is given here as well.
https://www.miraclewebsoft.com/remote-codecommit-is-not-a-git-command-see-git-help/
i try to uninstall git-remote-codecommit and find the path that it's installed
C:\Users\user>pip3 uninstall git-remote-codecommit
Found existing installation: git-remote-codecommit 1.16
Uninstalling git-remote-codecommit-1.16:
Would remove:
c:\users\user\appdata\roaming\python\python39\scripts\git-remote-codecommit-script.py
c:\users\user\appdata\roaming\python\python39\scripts\git-remote-codecommit.exe
c:\users\user\appdata\roaming\python\python39\site-packages\git_remote_codecommit-1.16-py3.9.egg-info
c:\users\user\appdata\roaming\python\python39\site-packages\git_remote_codecommit\*
when i add this path to environment variable then it works.
c:\users\user\appdata\roaming\python\python39\scripts\
I faced the same problem when I installed the git-remote-codecommit using pip with --user flag which installed the package in the home directory.
pip install git-remote-codecommit --user
I fixed the problem by adding Python's Script path to the PATH environment variable.
C:\Users\{HOME_DIR}\AppData\Roaming\Python\Python37\Scripts
In my case I set-up the remote url
$ git remote set-url origin https://git-codecommit.*******/v1/repos/My-Project
I added a commit
and I push to master
git push origin master
and it works

Airflow installation failure beam[gcp]

Airflow installation with command is failing
sudo pip3 install apache-airflow[gcp_api]
Everything was working fine yesterday. Today I see the following error:
Could not find a version that satisfies the requirement apache-beam[gcp]==2.3.0 (from google-cloud-dataflow->apache-airflow[gcp_api]) (from versions: 0.6.0, 2.0.0, 2.1.0, 2.1.1, 2.2.0)
No matching distribution found for apache-beam[gcp]==2.3.0 (from google-cloud-dataflow->apache-airflow[gcp_api])
Can someone help me on this?
Thanks in advance
I faced the same problem :(
Why?
most likely it happened because in the new version(2.3.0) of apache-beam they actually added the restriction for python3
https://pypi.python.org/pypi/apache-beam/2.3.0
Requires Python: >=2.7,<3.0
the previous packages didn't have this restriction, that is why it was working before(if you didn't use dataflow from gcp).
probably you have the last version of https://pypi.python.org/pypi/google-cloud-dataflow/2.3.0 which has updated apache-beam package
How to fix?
uninstall google-cloud-dataflow
pip3 uninstall google-cloud-dataflow
and install version 2.2.0 which has the old version of apache beam
pip install google-cloud-dataflow==2.2.0
Fixed this problem for me, I hope it will help you as well
This has been resolved in the master branch at Apache Airflow Github by Pull Request #3273 .
You can install the latest development branch using the below commands.
pip install git+https://github.com/apache/incubator-airflow
pip install git+https://github.com/apache/incubator-airflow#egg=apache-airflow[gcp_api]

Error while running PIP command "no module packaging exists"

I have tried many approaches in resolving this issue but still cannot resolve it can someone please help me.
when I try to run the pip to install any new package it is ending in error with the message no module named packaging.version. This is happening in the __init__.py file where there are import command import packaging.version.
I tried to install the packaging package by using the command pip install packaging even that ended in failure with the same error.
Then I tried to install this package using the apt-get command
sudo apt-get install python-packaging but it ended saying could not find the package.
Finally I tried to update the setuptools package to version 33.1.1 as a part of the previous solutions approaches, but can't do it with pip(same issue as above) so I used the apt-get command
sudo apt-get install setuptools=33.1.1 but it is saying no package with this version found error.
I am out of ideas can someone please help. Appreciate your help.
I believe that your version of pip is obsolete. Try running pip install --upgrade pip.
If you cant do it (still the same error), I'd suggest to reinstall pip.
You can do it with get-pip.py file. Here you can find a quick guide: Installing pip setuptools and wheel.
You may also be able to reinstall it with python -m pip install -U pip.

Installing npm for bower on dokku

I am trying to use bower install on my Django app, which is running on a dokku image.
I've got a plugin which tries to run it on pre-deploy but it needs npm and there's no npm installed on the image.
Does anyone know how to get npm on to the image or am I going about things the wrong way here?
In case anyone stumbles over this problem themselves, the answer is to use this plugin:
https://github.com/F4-Group/dokku-apt

Loopback lb-ng (LoopBack Angular SDK command-line tool) not working

I'm going through the tutorials of http://docs.strongloop.com, and I've reached http://docs.strongloop.com/display/public/LB/Add+a+client+app.
Yet when I execute 'lb-ng ../server/server.js js/lb-services.js' I get an error: Cannot find module 'loopback'.
Any help would be appreciated!
For the new version of loopback you need to install lb-ng command with this line of command
sudo npm install -g loopback-sdk-angular-cli
also try to be in the client folder make sure that you have js directory in client directory then execute these lb-ng commad
lb-ng ../server/server.js js/lb-services.js
it will work
:)
did you npm install your dependencies? check and see if you have a node_modules dir in your project root.
if you're using a newer version of node, try uninstalling node and reinstalling an LTS version.
npm uninstall -g strongloop
npm cache clear
npm install -g strongloop
This is how I fixed this problem for me.
install strong loop and then run lb-ng command this is how i fixed this problem