Comments (6)
I meet the same issue. I choose to use pinyin-pro, it doesn't have this issue. More important, it has higher accuracy, better performance and smaller size!
from pinyin.
还没使用分词功能
node:internal/modules/cjs/loader:988 throw err; ^ Error: Cannot find module '/var/www/wx/node_modules/.pnpm/[email protected]/node_modules/nodejieba/build/Release/nodejieba.node' Require stack: - /var/www/wx/node_modules/.pnpm/[email protected]/node_modules/nodejieba/index.js - /var/www/wx/node_modules/.pnpm/[email protected]/node_modules/pinyin/lib/segment.js - /var/www/wx/node_modules/.pnpm/[email protected]/node_modules/pinyin/lib/pinyin.js - /var/www/wx/commands/index.ts
I have the same problem
from pinyin.
If you guys deploy your app through Docker, be sure to add RUN apk add --no-cache --virtual .gyp python3 make g++
in your Dockerfile
from pinyin.
我也碰到相同的问题,看起来是安装nodejieba时候出错了
pnpm install pinyin
Packages: +79
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 293, reused 281, downloaded 0, added 0, done
node_modules/.pnpm/[email protected]/node_modules/nodejieba: Running install script, failed in 4.3s (skipped as optional)
Error: Cannot find module 'D:\workspace\nodejs\aije\backend-svc\node_modules\.pnpm\[email protected]\node_modules\nodejieba\build\Release\nodejieba.node'
Require stack:
- D:\workspace\nodejs\aije\backend-svc\node_modules\.pnpm\[email protected]\node_modules\nodejieba\index.js
- D:\workspace\nodejs\aije\backend-svc\node_modules\.pnpm\[email protected]\node_modules\pinyin\lib\segment.js
- D:\workspace\nodejs\aije\backend-svc\node_modules\.pnpm\[email protected]\node_modules\pinyin\lib\pinyin.js
- D:\workspace\nodejs\aije\backend-svc\services\user-components\component.js
- D:\workspace\nodejs\aije\backend-svc\services\schedule\schedule.js
- D:\workspace\nodejs\aije\backend-svc\services\schedule\index.js
- D:\workspace\nodejs\aije\backend-svc\routers\schedule.js
- D:\workspace\nodejs\aije\backend-svc\routers\index.js
- D:\workspace\nodejs\aije\backend-svc\index.js
from pinyin.
@chaselen @tiannahaha @youth7 试试 3.0.0-alpha.7
from pinyin.
I meet the same issue. I choose to use pinyin-pro, it doesn't have this issue. More important, it has higher accuracy, better performance and smaller size!
最后采用pinyin-pro解决了问题,感谢
from pinyin.
Related Issues (20)
- 有没有全局的segment设置? HOT 4
- "繁"字,给出了三个读音[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.