After installing globally with npm install -g @4ier/notion-cli, the notion command is not found despite the package installing successfully.
Expected behavior: After running npm install -g @4ier/notion-cli, the notion command should be available globally.
Actual behavior: The notion command is not found. npm creates a symlink pointing to bin/notion, which doesn't exist. The actual binary is named bin/notion-bin.
Root cause: The bin field in package.json points to bin/notion, but the actual binary in the package is bin/notion-bin. This results in a dangling symlink:
$ ls -la ~/.nvm/versions/node/v24.13.0/bin/notion
lrwxrwxrwx 1 ubuntu ubuntu 47 Apr 5 22:48 notion -> ../lib/node_modules/@4ier/notion-cli/bin/notion
$ ls ~/.nvm/versions/node/v24.13.0/lib/node_modules/@4ier/notion-cli/bin/
notion-bin
notion.cmd
Fix: Either rename bin/notion-bin to bin/notion in the package, or update the bin field in package.json to point to bin/notion-bin.
Environment:
- Node: v24.13.0 (via nvm)
- OS: Ubuntu (Linux)