Can';安装firebase

Can';安装firebase,firebase,npm,Firebase,Npm,我正在尝试为firebase安装npm,但我一直遇到错误。。。 我试过使用npm版本5.6.0和5.7.1 我甚至尝试安装assert plus,但也失败了(类似于下面的错误)。有什么建议吗 vagrant [polaris]> npm install firebase npm ERR! path /vagrant/polaris/node_modules/grpc/node_modules/dashdash/node_modules/assert-plus/package.json.28

我正在尝试为firebase安装npm,但我一直遇到错误。。。 我试过使用npm版本5.6.0和5.7.1 我甚至尝试安装assert plus,但也失败了(类似于下面的错误)。有什么建议吗

vagrant [polaris]> npm install firebase
npm ERR! path /vagrant/polaris/node_modules/grpc/node_modules/dashdash/node_modules/assert-plus/package.json.2882240414
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/vagrant/polaris/node_modules/grpc/node_modules/dashdash/node_modules/assert-plus/package.json.2882240414'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/vagrant/.npm/_logs/2018-03-14T23_28_13_938Z-debug.log

一个简单的建议。删除您的node_modules文件夹并重新执行“npm安装”。

您应该使用
npm install-g firebase tools
而不是
npm install-g firebase
。之后,您将能够在PC上初始化项目