我需要安装此软件包。我在node_modules文件夹中执行此操作:
URL: https://github.com/SparkPost/node-sparkpost
npm install sparkpost
我得到了这个错误:
npm ERR! Linux 3.19.0-47-generic
npm ERR! argv "node" "/usr/local/bin/npm" "install" "sparkpost"
npm ERR! node v0.10.25
npm ERR! npm v3.9.2
npm ERR! path /home/francedema/Scrivania/Virtual Vagrant/Centos/nodebb/node_modules/bootstrap-colorpicker
npm ERR! code EISGIT
npm ERR! git /home/francedema/Scrivania/Virtual Vagrant/Centos/nodebb/node_modules/bootstrap-colorpicker: Appears to be a git repo or submodule.
npm ERR! git /home/francedema/Scrivania/Virtual Vagrant/Centos/nodebb/node_modules/bootstrap-colorpicker
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.
npm ERR! Please include the following file with any support request:
npm ERR! /home/francedema/Scrivania/Virtual Vagrant/Centos/nodebb/npm-debug.log
任何人都可以帮助我?
答案 0 :(得分:3)
您应该从与package.json
文件相同的目录中安装NPM软件包。查看代码,您将需要执行以下操作:
cd "/home/francedema/Scrivania/Virtual Vagrant/Centos/nodebb"
npm install --save sparkpost
--save
选项会为你的package.json依赖项添加sparkpost。
由于bootstrap-colorpicker
包,您可能也会遇到一些错误。我会首先尝试从正确的目录安装,看看是否有帮助。