Yes, creating package.json in current folder should help. Otherwise npm installs to the top node_modules if that is found.