我在安装noodle.js时遇到此错误

时间:2017-11-27 00:13:32

标签: node.js npm web-scraping npm-install

npm WARN deprecated connect@2.3.9: connect 2.x series is deprecated
npm WARN deprecated CSSselect@0.7.0: the module is now available as 'css select'
npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what'
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm ERR! path F:\Bot\NewChatbot\node_modules\noodlejs
npm ERR! code EISGIT
npm ERR! git F:\Bot\NewChatbot\node_modules\noodlejs: Appears to be a git repo or submodule.
npm ERR! git     F:\Bot\NewChatbot\node_modules\noodlejs
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

我尝试了很多问题,这是一个关于同样问题的热门帖子,但答案是没有用的

我不知道这是什么意思

我已经尝试过:

1) npm install dharmafly/noodle
2) git clone https://github.com/dharmafly/noodle.git
3) npm install noodlejs

1 个答案:

答案 0 :(得分:0)

它不喜欢您有一个git子模块。在您的情况下,noodlejs中的.git。 因此,转到您的proeject文件夹,然后导航到noodlejs(F:\ Bot \ NewChatbot \ node_modules \ noodlejs)并将.git复制到您的桌面,然后在项目中安装npm软件包,然后将.git粘贴到noodlejsback中。