无法运行NPM get error:找不到模块'are-we-there-yet'

Nea*_*int 5 homebrew node.js npm

我刚刚删除了Node并用自制软件重新安装了它.我首先安装没有npm.然后使用npm删除该版本并安装节点.

安装成功但现在我无法使用NPM.

我尝试使用NPM的任何东西都会出错

module.js:338
    throw err;
    ^

Error: Cannot find module 'are-we-there-yet'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npmlog/log.js:2:16)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
Run Code Online (Sandbox Code Playgroud)

我完全不知道该尝试什么.没有npm命令我可以尝试.我尝试使用自制程序删除并重新安装节点,但这不起作用.请帮忙

UPDATE

我看到了这个答案:npm不起作用,总是得到这个错误 - >错误:找不到模块'我们还在那里'

但解决方案不起作用.我甚至没有文件夹

cd /usr/local/Cellar/node/0.10.22/lib/node_modules

在lib文件夹中没有node_modules.

甚至npm i npm -g没用.

Nea*_*int 0

我通过删除 Node 的自制安装,然后使用安装程序直接从 Node.js 网站进行安装,让 Node 和 NPM 再次工作。这可能不是最好的答案,但它现在对我有用。