Comments (5)
npm i [email protected]
from pinyin.
问题依旧啊,错误来自CPP里面的问题
[root@pan miniyunjs]# npm install [email protected]
npm WARN engine [email protected]: wanted: {"node":"0.10.x"} (current: {"node":"2.2.1","npm":"2.11.0"})
/
> [email protected] install /home/data/miniyunjs/node_modules/pinyin/node_modules/nodejieba
> node-gyp rebuild
make: Entering directory `/home/data/miniyunjs/node_modules/pinyin/node_modules/nodejieba/build'
CXX(target) Release/obj.target/segment/src/segment.o
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:66,
from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/char_traits.h:41,
from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/string:42,
from ../node_modules/nan/nan.h:37,
from ../src/utils.h:6,
from ../src/mix_segment.h:4,
from ../src/segment.cpp:1:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_pair.h: In constructor ‘std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = size_t&, _U2 = long int, _T1 = long unsigned int, _T2 = const CppJieba::DictUnit*]’:
../src/CppJieba/Trie.hpp:101: instantiated from here
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_pair.h:90: 错误:从类型‘long int’到类型‘const CppJieba::DictUnit*’的转换无效
make: *** [Release/obj.target/segment/src/segment.o] 错误 1
make: Leaving directory `/home/data/miniyunjs/node_modules/pinyin/node_modules/nodejieba/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/data/iojs-v2.2.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:199:12)
gyp ERR! System Linux 2.6.32-504.16.2.el6.x86_64
gyp ERR! command "/home/data/iojs-v2.2.1-linux-x64/bin/iojs" "/home/data/iojs-v2.2.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/data/miniyunjs/node_modules/pinyin/node_modules/nodejieba
gyp ERR! node -v v2.2.1
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Linux 2.6.32-504.16.2.el6.x86_64
npm ERR! argv "/home/data/iojs-v2.2.1-linux-x64/bin/iojs" "/usr/local/bin/npm" "install" "[email protected]"
npm ERR! node v2.2.1
npm ERR! npm v2.11.0
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the nodejieba package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls nodejieba
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/data/miniyunjs/npm-debug.log
from pinyin.
rm -rf node_modules/pinyin 试试
from pinyin.
from pinyin.
已经解决,谢谢
from pinyin.
Related Issues (20)
- 有没有全局的segment设置? HOT 4
- 安装3.0.0-alpha.5版本后运行,出现找不到模块`nodejieba`错误 HOT 6
- "繁"字,给出了三个读音[fán, pán, pó],其中 "pán" 是错误的,这个字没有这个读音 HOT 1
- "桔"字,给出了三个读音[jú, jié, xié],其中 "xié" 是错误的,这个字没有这个读音 HOT 1
- Is it possible to make the html ruby code on the top of Chinese word segmentation for sentences?
- dict-ci.js中“英雄辈出”的雄字注音xóng应为xióng
- 使用node导入pinyin这个包的时候为什么会显示模块不存在 HOT 7
- EsModule引用报错 HOT 2
- 在vue3+vuecli情况下build会报错 HOT 5
- vue2引入包后编译报错 HOT 5
- package.json is not node-pre-gyp ready: HOT 2
- web端 "pinyin": "^3.0.0-alpha.4" "踝" 不兼容 HOT 1
- 《》和里面的内容被当成一个字符处理了 HOT 1
- 添加{mode: 'normal'}无效 HOT 4
- 吕姓pinyin怎么处理成LYU HOT 2
- ESM module imports require .js extension HOT 2
- 希望style可以多选 HOT 1
- 如何去除nodejieba依赖,云函数使用不了 HOT 1
- 能否搞一个DOCKER 给个端口 给个API可以直接用? HOT 1
- 能否兼容IE11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pinyin.