How to install neo4j.bat - batch-file

I am trying to install neo4j.bat using the cmd: neo4j.bat install service. I am following a tutorial on this so I can use BloodHound on my windows machine.
when running this command I am getting an Error:
AuthorizedManager check faild.
CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordException
FullyQualifiedErrorId : UnauthorizedAccess
Has anyone seen this or know how to get passed this.

Create a dummy folder anywhere C:\libraries and place bat file neo4j.bat in the created folder and add(append) the folder path C:\libraries\ to Path environment variable
For adding environment variable,
search for environment variable,
GO to User variables for YourAccountName, Select Path, Click Edit, Click on New > Paste C:\libraries\ without quotes > Click ok > Click ok

I ended up downloading a differnt version along with the desktop version. This seemed to work.

Related

The term 'behave' is not recognized as the name of a cmdlet, function

I have Python 3.10.7 with the follwing packgaes installed using pip install in command line:
behave 1.2.6
selenium 4.4.3
These have also been added to the packagelist of the project using the project config in pycharm
Also behave is in the systme path as well along with python.
I am trying to use the behave command but I am getting the following error:
behave : The term 'behave' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ behave features\myfeaturefile.feature
Following is my project directory:
Following is my project in pycharm:
I need help in fixing this problem as I am new to this tool. Thanks
First check if you have behave and python in the path variables.
Check if you can execute the below command
C:\demo>behave -h
If this does not return a list of help commands associated with behave, this means that behave is not in the path variables
Alternatively, you can check it via cmd using the "PATH" command. This will show you all the entries in the system path
C:\demo>PATH
PATH=C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\Program Files\AdoptOpenJDK\jdk-11.0.11.9-hotspot\bin...
If behave or python are not in the path variables, you can set them using
set PATH=%PATH%;c:\PATH_TO_BEHAVE
NOTE: Setting path using cmd is only valid till the time the cmd window is open. Once you close it, the path variable will be rest to original values.
Behave, along with a few other .exe files is sitting in the:
C:\Users\chauhany\AppData\Roaming\Python\Python310\Scripts
As per your instructions #Manish Agarwal, I added the C:\Users\chauhany\AppData\Roaming\Python to the PATH from the command line and re-started the machine. But it didn't help. I then moved the behave.exe from the above location to my python 3.10 directory which is sitting in C:\Program Files\Python310 and python is in the system path, and restarted my machine again.
I then deleted and recreated my project with the new feature file (same directory structure).
If I now run the same command, that is, features\myfeaturefile.feature from
C:\Users\chauhany\PycharmProjects\martechBehaveProject>
I get a FileNotFound error
So I went to the folder where the file is actually sitting that is:
C:\Users\chauhany\PycharmProjects\martechBehaveProject\features\steps> and then re-ran the command and it worked.
I was under the impression that if you have just one feature file you don't have to specify the actual feature file and it can be run from anywhere in your project i.e., from any location which certainly is not correct.

Expo CLI not recognised

im trying to create a new react-native app and to create it i need the expo CLI so i installed it via npm but then after trying to run expo init.... an error response occrured as the following:
expo : The term 'expo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
expo init _______
+ CategoryInfo : ObjectNotFound: (expo:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Would apperciate any help, Thanks.
If you could share additional screenshots that would be helpful.
One thing that is super easy to overlook is the path.
For example, you create a new folder "myApp"
Inside that folder you run npm install/expo init/etc.
What this does is creates another folder inside that one.
So your new path should be C://path/myApp/myApp
If you edit your question with screen shots/more info, then I can give a more detailed answer.
I had this issue before and here are some things to try:
install expo-cli globally (you dont explicitly state you've done this) npm i -g expo-cli
If you are using PowerShell and you are getting messages along the line of expo.ps1 cannot load because the execution of scripts is disabled on this system. you need to enable script execution. Decide on the script execution scope you want. Choices are Restricted (the current setting if you are getting this message), AllSigned, Unrestricted, and RemoteSigned (probably the one you want). Then open PowerShell as an admin and run
Set-ExecutionPolicy RemoteSign
Make sure npm is added to path (on Windows look for %USERPROFILE%\appData\Roaming\npm)
The classic uninstall, reboot, and reinstall

'BUILD_PATH' Creates Directory but Files are Empty

I am trying to automate pushing my compiled code to my development server host.
My plan is to build the code from react-scripts and push it to my server's bare repo. But since the code itself is also under source control, I want the folder to be out of the source's main git.
I have set the BUILD_PATH option in my react-scripts (Windows environment):
"scripts": {
...
"buildStage": "set BUILD_PATH=../buildStage && react-scripts build"
}
When I run "buildStage" it compiles, and I can navigate to it in Windows File Explorer, the compiled file tree is there, but the folder size is 0 bytes.
Similarly, if I try to navigate there using Powershell, I get an error:
<user>: cd ../buildStage
cd : Cannot find path 'C:\Users\user\Documents\Code\src\buildStage' because it does not exist.
At line:1 char:1
+ cd x
+ ~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\user...s\Code\src\buildStage:String) [Set
-Location], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
So apparently it doesn't find the build folder, despite having just built the code into it.
Has anyone experienced this and knows of a way through this?

Firebase login error in VS code (with React app) because running scripts is disabled

I was trying to deploy my react app to with firebase and this happened after puting thhis command in the terminal: firebase login
firebase : File C:\Users\hp\AppData\Roaming\npm\firebase.ps1 cannot be loaded because running scripts is disabled on d because running scripts is disabled on
this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. .microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
firebase init
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Use git bash terminal to solve this issue
Using "cd" command navigate to your project directory
Instead of "firebase login" use "firebase login --interactive" in the git bash terminal.
Also I found that if you open git bash terminal in vs code you will not have issues navigating the interactive server options.
In VSCode Editor Terminal Select "Git Bash", refer the screenshot
and enter the run the command there.

Drupal drush error

I have installed Composer on C drive (C:\Documents and Settings\All Users\Application Data). I have a drupal7 project on D drive (D:\wamp\www\drupal71).
I have installed Drush by this command: composer global require drush/drush:7.* and it successfully downloaded but skipped installing because of naming conflicts. Please see the attached screen shot.
Now when I run the drush command drush status, it shows that "drush is not recognized as an internal or external command".
Can you please guide / help me?
You have to add the PATH to your environment variables. To do this:
Right-click My computer, and go to "Properties"
Go to Advanced System Settings
In the Avanced tab, click Environment Variables
At user variables for User, you should add a line to the "Path" variable ( if you don't have that already create it)
You should add the absolute path where your drush file is DON'T FORGET TO PUT ";" before the other paths which may be already there.
My drush file absolute path was E:/windrush/vendor/drush/drush so I added like the following picture

Resources