Express-generator application not found by command prompt - express-generator

I installed express-generator but when I write in CMD (express --view=ejs astronomy) it gives me this error: 'express' is not recognized as an internal or external command,
operable program or batch file.
I did with express-generator couple projects before I installed anaconda python 3.7.4

First, have a look at this: how-to-ask It will help you to use Stack Overflow more effectively.
I think you have not installed express globally!
to install it globally, try the following.
npm install -g express
Also, if express is not in your PATH you have to add the full path to run it in cmd:
\myproject\node_modules\.bin\express.cmd
(Usually is not recognized as an internal or external command happens because the system couldn't find it in the path variable!)
Hope this helps!
Good Luck!!

Related

I am not able to install Apache Airflow in Windows

My attempts include:
[ here i have python 3.9 so my constraints is 3.9]
I created a virtual environment and attempted to install Apache-Airflow by using pip install 'apache-airflow==2.5.1' / —constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.5.1/constraints-3.9.txt," but I received an error that I couldn't understand, so I looked on the stack community for advice and learned that I needed to add -t, which I did.
but then I started getting permission errors, then I went into community posts and how to fix permission errors, and it was suggested that I should run command prompt as administrator and then install unfortunately this thing isn't working for me
I've tried running cmd as administrator, going to my project's directory, activating virtualenv, and installing the library, but I still get the same problem. PermissionError: [WinError 5] Access is denied: 'D:\\'
Thanks in advance.
Try removing the slash (/) from the command before the --constraint and then running inside the cmd terminal; it will work.
pip install apache-airflow==2.5.1 --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.5.1/constraints-3.9.txt"
Note : Please be aware that the above recommendation is for Windows, but even if it is successfully installed you won't be able to run airflow because of the files used, such as pwd and others. Therefore, I will recommend that you use airflow in Windows using Ubuntu. You can follow this link to install Ubuntu in your system and set up airflow.
youtube-video-url

Can't load shared library libQt5Core.so.5

This question has been asked before, but the fixes don't work for me. I am running Windows 10 with WSL (Debian) and I am unable to run a QT program because of the error
texconv: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory
I found a post which discusses the same problem. I've tried tolos' and Envek's solutions, but they don't work for me. For me the file is under /usr/lib/x86_64-linux-gnu/ like tolos' was. I also sudo-ed the strip and recompiled the qt program (If that even matters), but it still doesn't work.
If it matters, my kernel version (checked with uname -r) is 4.4.0-18362-Microsoft and I have no issues running this qt program on my other PC that uses WSL Ubuntu. And I installed the qt stuff with this command: sudo apt-get install qt5-default qtbase5-dev
I had an image that I would run using docker run and which would successfully launch KStars -- an application that uses this libQt5core.so.5.
If I ran the very same image on a Kubernetes cluster then I would get an error message when launching KStars like libQt5Core.so.5: cannot open shared object file: No such file or directory or some such.
Putting this strip command into the Dockerfile and rebuilding the image allowed the application to load successfully in both environments.
sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
I got it working in the end. I upgraded from WSLv1 to WSLv2 and that solved it. Not sure why, but it must have been a WSLv1 Debian bug

Serverless with golang: 'make' is not recognized as a command

I am following this tutorial to create lambda functions using golang, but I get stuck at the make command where I get: 'make' is not recognized as an internal or external command,
operable program or batch file.
I installed serverless using npm install -g serverless and I have node v8.9.4 and I'm running this on windows' cmd
What am I missing?
It turns out I was missing make which has nothing to do with the serverless framework itself.
There's a make for windows

heroku cli commands not responding on windows 10

I installed heroku cli on windows 10 via exe installer.
When i try to run heroku --version command or heroku login
command, the command window does not respond. It does not give any error.
Then i uninstalled it and installed it using npm install -g heroku-cli
but getting same result.
Node version - 8.7.0
In Windows cmd prompt, do:
echo %USERPROFILE%
Go to your C:\Users\YOURNAME
Look for a file named:
_netrc
This file stores login credentials. Delete it.
Then check for an update:
heroku update
Then try to log in:
heroku login
I saw some people create an environment variable called HOME and add the path to YOURNAME so the environment knows to look for the _netrc file there.
Other trouble-shooting ideas if the above doesn't work for you can be found at Heroku CLI troubleshooting
In windows , run %LOCALAPPDATA%\heroku, completely delete this folder. and check again on cmd by typing heroku --version. Hope this helps.
I ended up uninstalling heroku from the Windows Installer and instead used the standalone tarball.
You can get the tarballs from here.
After you downloaded and extracted it, you can go to your terminal and cd into the directory where you extracted the file and do the following command:
./bin/heroku --version
Whenever you need the heroku CLI, you can cd into the directory where heroku is, then ./bin/heroku is the executable for heroku.

Graphicsmagick not working in cmd, but works in webstorm

I have an interesting issue with Graphicsmagick. I've installed grunt-responsive-images-converter, and successfully configure it. The problem is that it works only when I run it form Webstorm IDE, but when I run it in cmd I get this error:
Running "responsive_images:resize" (responsive_images) task
spawn ENOENT
Warning:
Please ensure GraphicsMagick is installed correctly.
brew install graphicsmagick or see http://www.graphicsmagick.org/download.html for more > > details.
Alternatively, set options.engine to 'im' to use ImageMagick.
Use --force to continue.
I've installed GraphicsMagick-1.3.19-Q16-win64-dll.exe with checked checkbox:"Update executable search path".
I don't know what can I do more, so please help :)

Resources