Specifically, if there is no package.json in the target entry point's directory, when deployment starts looking upward through parent directories, it may reach $HOME—where there might be a package.json. This is an edge case that might be worth documenting versus attempting to fix.