当在原生 Windows 环境(PowerShell/CMD)下通过 npm 安装并运行 notion-cli 时,程序会报错崩溃。生成的 notion.ps1 脚本错误地尝试去调用 /bin/sh.exe,而标准 Windows 系统中根本没有这个路径。
PS E:\project\open-agent> npm install -g @4ier/notion-cli
added 1 package in 43s
PS E:\project\open-agent> notion -v
&: C:\Users\Administrator\AppData\Roaming\npm\notion.ps1:24
Line |
24 | & "/bin/sh$exe" "$basedir/node_modules/@4ier/notion-cli/bin/noti …
| ~~~~~~~~~~~~~
| The term '/bin/sh.exe' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included,
| verify that the path is correct and try again.
当在原生 Windows 环境(PowerShell/CMD)下通过 npm 安装并运行 notion-cli 时,程序会报错崩溃。生成的 notion.ps1 脚本错误地尝试去调用 /bin/sh.exe,而标准 Windows 系统中根本没有这个路径。