Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
02-06-2019 12:31 AM
Import-Module : The specified module '\Neo4j-Management.psd1' was not loaded be
cause no valid module file was found in any module directory.
At C:\Users\JOGENDR\Desktop\neo4j-community-3.5.2\bin\neo4j.ps1:27 char:14
The term 'Get-Args' 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 in
cluded, verify that the path is correct and try again.
At C:\Users\JOGENDR\Desktop\neo4j-community-3.5.2\bin\neo4j.ps1:28 char:22
02-06-2019 08:12 AM
Hello,
Seems odd, could you answer a few questions for me:
neo4j.bat
for example)$PSVersionTable.PSVersion
will get you that.neo4j-community-3.5.2
folder and check if the properties window has an 'unblock' button)Import-Module C:\Users\JOGENDR\Desktop\neo4j-community-3.5.2\bin\Neo4j-Management.psd1 -verbose
in here?If the result of '6' looks ok, can you then try:
Invoke-Neo4j console
Does that work?
02-06-2019 09:05 PM
Hi Chris,
i have done all this.
I am using windows 7 OS.
i am getting this error
Import-Module : The specified module '\Neo4j-Management.psd1' was not loaded because no valid module file was found in
any module directory.
At C:\Users\JOGENDR\Desktop\neo4j-community-3.5.2\bin\neo4j.ps1:27 char:14
Import-Module <<<< "$PSScriptRoot\Neo4j-Management.psd1"
CategoryInfo : ResourceUnavailable: (\Neo4j-Management.psd1:String) [Import-Module], FileNotFoundExcept
ion
The term 'Get-Args' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the sp
elling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\JOGENDR\Desktop\neo4j-community-3.5.2\bin\neo4j.ps1:28 char:22
$Arguments = Get-Args <<<< $args
CategoryInfo : ObjectNotFound: (Get-Args:String) , CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException
The term 'Invoke-Neo4j' is not recognized as the name of a cmdlet, function, script file, or operable program. Check th
e spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\JOGENDR\Desktop\neo4j-community-3.5.2\bin\neo4j.ps1:29 char:19
Exit (Invoke-Neo4j <<<< -Verbose:$Arguments.Verbose -Command $Arguments.ArgsAsStr)
CategoryInfo : ObjectNotFound: (Invoke-Neo4j:String) , CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException
02-07-2019 12:34 AM
I just had this issue. Not sure which thing fixed it, I upgraded powershell, and also set the JAVA_HOME environment variable, and after a reboot it worked
02-07-2019 12:40 AM
Hi chis,
After trying with several change and powershell options and editing some conf files , I am finally able to connect to Neo4j Database
Thank God, it is really complicated as it is a powershell base so i installed version 6 ( mentioined more than v2.0 PS version ) in the windows machine.
editing the neo4j.bat file and conf/neo4j.conf fiile inside installation directory ,then it works
I will do some practice now -
Thanks with Regards
Jogendra Patro
02-07-2019 12:43 AM
I'm glad you've got it sorted - I'm 90% sure it's the powershell version - I think I ran into this on an older windows version - alas - I've not got that VM to hand at the moment to test.
06-02-2019 04:15 PM
Hi Jogendra Patro,
I am having the same pb. I have updated to PowerShell version 6 but I am struggling with the editing of the neo4j and config files. Could you share what exactly you have changed to make it work?
Regards
BF
08-28-2019 11:33 PM
Hey @bruno Welcome!
Could you open a command prompt and run:
SET JAVA_HOME
and see what it says - if it says:
Environment variable JAVA_HOME not defined
You could try setting the JAVA_HOME environment variable in Windows settings - to point to the location you have Java installed.
I think (can't be sure) that the changes to the .bat
files are probably to do with replacing JAVA_HOME
with the actual Java path.
All the best
Chris
04-28-2020 06:08 AM
Hi,
I am also getting that error. How can i solve?
05-06-2020 07:34 AM
Hi @sravyakapalavai,
Have you done the steps above? Upgrading Powershell etc?
If so - please can you answer these questions:
neo4j.bat
for example)$PSVersionTable.PSVersion
will get you that.neo4j-community-3.5.2
folder and check if the properties window has an 'unblock' button)Import-Module YOUR PATH\neo4j-community-3.5.2\bin\Neo4j-Management.psd1 -verbose
in here?Obviously, change the paths!
All the best
Chris
All the sessions of the conference are now available online