Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade node-pre-gyp to fix install problem #193

Merged
merged 1 commit into from
Apr 26, 2021
Merged

upgrade node-pre-gyp to fix install problem #193

merged 1 commit into from
Apr 26, 2021

Conversation

yeliex
Copy link
Contributor

@yeliex yeliex commented Apr 26, 2021

node-pre-gyp has been deprecated and only the scoped name @mapbox/node-pre-gyp will receive upgrades (as https://github.com/mapbox/node-pre-gyp#special-note-on-previous-package)

this change fix install problems caused by node-pre-gyp issues with node versions 12.x 14.x and higher

fix: #116 #165 #162 and so.........on

error /project/node_modules/nodejieba: Command failed.
Exit code: 6
Command: node-pre-gyp install --fallback-to-build
Arguments: 
Directory: /project/node_modules/nodejieba
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.14.0
node-pre-gyp info using node@12.21.0 | darwin | x64
node-pre-gyp WARN Using needle for node-pre-gyp https download 
node-pre-gyp info check checked for "/project/node_modules/nodejieba/build/Release/nodejieba.node" (not found)
node-pre-gyp http GET https://github.com/yanyiwu/nodejieba/releases/download/v2.5.1/nodejieba-v2.5.1-node-v72-darwin-x64.tar.gz
node-pre-gyp http 301 https://github.com/yanyiwu/nodejieba/releases/download/v2.5.1/nodejieba-v2.5.1-node-v72-darwin-x64.tar.gz
node-pre-gyp ERR! Completion callback never invoked! 
node-pre-gyp ERR! System Darwin 19.6.0
node-pre-gyp ERR! command "/usr/local/Cellar/node/16.0.0/bin/node" "/project/node_modules/nodejieba/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /project/node_modules/nodejieba
node-pre-gyp ERR! node -v v12.21.0
node-pre-gyp ERR! node-pre-gyp -v v0.14.0
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR!     <https://github.com/mapbox/node-pre-gyp/issues>
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

@yeliex
Copy link
Contributor Author

yeliex commented Apr 26, 2021

@yanyiwu review plz

@yanyiwu yanyiwu merged commit d746188 into luckykaiyi:master Apr 26, 2021
@yanyiwu
Copy link
Collaborator

yanyiwu commented Apr 26, 2021

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

npm install nodejieba failed with node 4.3.2 & npm 2.14.12 & nodejieba 2.2.5
2 participants