cnpm install 安装失败

来源:14-3 elasticsearch-head插件以及kibana的安装

木子李的乐趣生活

2017-10-16

C:\Users\Lenovo Y510P\elasticsearch-head-master>cnpm install

| [6/10] Installing jsonify@~0.0.0platform unsupported karma@1.3.0 > chokidar@1.

7.0 > fsevents@^1.0.0 Package require os(darwin) not compatible with your platfo

rm(win32)

[fsevents@^1.0.0] optional install error: Package require os(darwin) not compati

ble with your platform(win32)

V Installed 10 packages

V Linked 312 latest versions

× Install fail! Error: post install error, please remove node_modules before ret

ry!

spawn C:\TreeTagger\bin ENOENT

Error: post install error, please remove node_modules before retry!

spawn C:\TreeTagger\bin ENOENT

    at exports._errnoException (util.js:1020:11)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:197:32)

    at onErrorNT (internal/child_process.js:376:16)

    at _combinedTickCallback (internal/process/next_tick.js:80:11)

    at process._tickCallback (internal/process/next_tick.js:104:9)

npminstall version: 3.1.4

npminstall args: C:\Program Files\nodejs\node.exe C:\Users\Lenovo Y510P\AppData\

Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --china --u

serconfig=C:\Users\Lenovo Y510P\.cnpmrc --disturl=https://npm.taobao.org/mirrors

/node --registry=http://registry.npm.taobao.org

#我网上查看了一下 说解决该问题应该手动创造 C:\TreeTagger\bin 路径,我创建了该文件夹 还是有同样的报错

写回答

1回答

bobby

2017-10-17

先删除node_modules文件夹 然后重新运行试试

0
5
bobby
回复
木子李的乐趣生活
我的qq 442421039, 或者你重新在github上下载源码 然后试试
2017-10-20
共5条回复

Scrapy打造搜索引擎 畅销4年的Python分布式爬虫课

带你彻底掌握Scrapy,用Django+Elasticsearch搭建搜索引擎

5796 学习 · 6290 问题

查看课程