未能加载指定的模块“\Neo4j-Management.psd1
解决方案
方法一
增加环境变量PSScriptRoot = “D:\beforeInstalling\neo4j-community-3.5.5-windows\neo4j-community-3.5.5\bin”及在path中增加%PSScriptRoot%发现没有生效,
有尝试该方法成功的同学麻烦告知下原因
最后采用其他大多数的解决方案
方法二
参考https://www.cnblogs.com/python168/p/13132392.html
Import-Module : 未能加载指定的模块“\Neo4j-Management.psd1”
如何解决:Import-Module : 未能加载指定的模块“\Neo4j-Management.psd1”,因为在任何模块目录中都没有找到有效模块文件。
解决方案:
在官网下载完zip后,系统环境变量也设置了,但运行语句:neo4j.bat console,报错如下:
因为找不到文件Neo4j-Management.psd1
咱们更改neo4j.ps1文件里Import-Module "$PSScriptRoot\Neo4j-Management.psd1"为绝对路径
修改为:
https://www.cnblogs.com/python168/p/13132392.html
登录成功提示
Connected to Neo4j
Nice to meet you.
You are connected as user neo4j
to bolt://localhost:7687
Connection credentials are stored in your web browser.
关掉后重新启动又报错
neo4j安装报错 is not a valid Neo4j installation.
参考https://blog.csdn.net/immenselee/article/details/108847858
D:\software\neo4j-chs-community-4.1.2-windows\bin>neo4j console
Invoke-Neo4j : D:\software\neo4j-chs-community-4.1.2-windows\bin is not a valid Neo4j installation. Missing D:\softwar
e\neo4j-chs-community-4.1.2-windows\bin\lib
所在位置 D:\software\neo4j-chs-community-4.1.2-windows\bin\neo4j.ps1:29 字符: 7
+ Exit (Invoke-Neo4j -Verbose:$Arguments.Verbose -Command $Arguments.Ar ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Neo4j
解决方法:
将lib 目录复制一份到bin目录
D:\software\neo4j-chs-community-4.1.2-windows\bin>neo4j console
2020-09-28 05:15:22.036+0000 WARN Config file [D:\software\neo4j-chs-community-4.1.2-windows\bin\conf\neo4j.conf] does not exist.
2020-09-28 05:15:22.038+0000 INFO Starting...
2020-09-28 05:15:23.771+0000 INFO ======== Neo4j 4.1.2 ========
2020-09-28 05:15:24.963+0000 INFO Initializing system graph model for component 'security-users' with version -1 and status UNINITIALIZED
2020-09-28 05:15:24.967+0000 INFO Setting up initial user from defaults: neo4j
2020-09-28 05:15:24.968+0000 INFO Creating new user 'neo4j' (passwordChangeRequired=true, suspended=false)
2020-09-28 05:15:24.976+0000 INFO Setting version for 'security-users' to 2
2020-09-28 05:15:24.979+0000 INFO After initialization of system graph model component 'security-users' have version 2 and status CURRENT
2020-09-28 05:15:24.984+0000 INFO Performing postInitialization step for component 'security-users' with version 2 and status CURRENT
2020-09-28 05:15:25.317+0000 INFO Bolt enabled on localhost:7687.
2020-09-28 05:15:26.071+0000 INFO Remote interface available at http://localhost:7474/
2020-09-28 05:15:26.072+0000 INFO Started.
其他问题参考:
https://blog.csdn.net/weixin_42565135/article/details/105959504
http://we-yun.com/index.php/blog/versions-56.html
https://blog.csdn.net/rentian1/article/details/88080135