nodejieba icon indicating copy to clipboard operation
nodejieba copied to clipboard

nodejieba安装不了

Open derrickliu opened this issue 9 years ago • 4 comments

$ npm install nodejieba

[email protected] install D:\workspace\feedback_client\node_modules\nodejieba node-gyp rebuild

D:\workspace\feedback_client\node_modules\nodejieba>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild ) gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:116:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:71:11 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd D:\workspace\feedback_client\node_modules\nodejieba gyp ERR! node -v v4.2.2 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "nodejieba" npm ERR! node v4.2.2 npm ERR! npm v2.14.7 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! D:\workspace\feedback_client\npm-debug.log

derrickliu avatar Sep 08 '16 06:09 derrickliu

python 路径设置的对吗?

Long-Summer avatar Sep 09 '16 11:09 Long-Summer

同:

npm ERR! Darwin 15.6.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "nodejieba" npm ERR! node v5.7.0 npm ERR! npm v3.6.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! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, 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 information on how to open an issue for this project with: npm ERR! npm bugs nodejieba npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls nodejieba npm ERR! There is likely additional logging output above.

lyyvalhalla avatar Oct 05 '16 03:10 lyyvalhalla

参考这些文档了吗? https://github.com/yanyiwu/nodejieba#nodejieba-在-windows-上面的一系列安装问题和斗争成功过程参考

yanyiwu avatar Oct 18 '16 15:10 yanyiwu

This issue has not been updated for over 5 years and will be marked as stale. If the issue still exists, please comment or update the issue, otherwise it will be closed after 7 days.

github-actions[bot] avatar Sep 08 '24 13:09 github-actions[bot]