node-question-answering icon indicating copy to clipboard operation
node-question-answering copied to clipboard

NPM Install Error!

Open MeechaPooch opened this issue 3 years ago • 5 comments

Its not installing uggg!!!!

npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '[email protected]', npm WARN EBADENGINE required: { node: '>=10 < 11 || >=12 <14' }, npm WARN EBADENGINE current: { node: 'v15.14.0', npm: '7.7.6' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '[email protected]', npm WARN EBADENGINE required: { node: '>=10 < 11 || >=12 <14' }, npm WARN EBADENGINE current: { node: 'v15.14.0', npm: '7.7.6' } npm WARN EBADENGINE } npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future ^A[ ] / reify:@tensorflow/tfjs-core: http fetch GET 200 https://registry.npmjs.org/@tensorflow/tfjs-cords[ ] - reify:@tensorflow/tfjs-core: http fetch GET 200 https://registry.npmjs.org/@tensorflow/tfjs-cornpm ERR! code 1 npm ERR! path /mnt/c/Users//OneDriveSchool/Documents/CODING/PERSONAL/MISC/ArticleParserTest/node_modules/tokenizers npm ERR! command failed npm ERR! command sh -c node-pre-gyp install npm ERR! 403 status code downloading tarball https://tokenizers-releases.s3.amazonaws.com/node/0.7.0/index-v0.7.0-node-v88-linux-x64-glibc.tar.gz npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using [email protected] npm ERR! node-pre-gyp info using [email protected] | linux | x64 npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download npm ERR! node-pre-gyp info check checked for "/mnt/c/Users//OneDriveSchool/Documents/CODING/PERSONAL/MISC/ArticleParserTest/node_modules/tokenizers/bin-package/index.node" (not found) npm ERR! node-pre-gyp http GET https://tokenizers-releases.s3.amazonaws.com/node/0.7.0/index-v0.7.0-node-v88-linux-x64-glibc.tar.gz npm ERR! node-pre-gyp http 403 https://tokenizers-releases.s3.amazonaws.com/node/0.7.0/index-v0.7.0-node-v88-linux-x64-glibc.tar.gz npm ERR! node-pre-gyp ERR! install error npm ERR! node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://tokenizers-releases.s3.amazonaws.com/node/0.7.0/index-v0.7.0-node-v88-linux-x64-glibc.tar.gz npm ERR! node-pre-gyp ERR! stack at Request. (/mnt/c/Users//OneDriveSchool/Documents/CODING/PERSONAL/MISC/ArticleParserTest/node_modules/node-pre-gyp/lib/install.js:142:27) npm ERR! node-pre-gyp ERR! stack at Request.emit (node:events:381:22) npm ERR! node-pre-gyp ERR! stack at Request.onRequestResponse (/mnt/c/Users//OneDriveSchool/Documents/CODING/PERSONAL/MISC/ArticleParserTest/node_modules/request/request.js:1176:10) npm ERR! node-pre-gyp ERR! stack at ClientRequest.emit (node:events:369:20) npm ERR! node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:646:27) npm ERR! node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (node:_http_common:129:17) npm ERR! node-pre-gyp ERR! stack at TLSSocket.socketOnData (node:_http_client:512:22) npm ERR! node-pre-gyp ERR! stack at TLSSocket.emit (node:events:369:20) npm ERR! node-pre-gyp ERR! stack at addChunk (node:internal/streams/readable:313:12) npm ERR! node-pre-gyp ERR! stack at readableAddChunk (node:internal/streams/readable:288:9) npm ERR! node-pre-gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2 npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/mnt/c/Users//OneDriveSchool/Documents/CODING/PERSONAL/MISC/ArticleParserTest/node_modules/.bin/node-pre-gyp" "install" npm ERR! node-pre-gyp ERR! cwd /mnt/c/Users//OneDrivSchool/Documents/CODING/PERSONAL/MISC/ArticleParserTest/node_modules/tokenizers npm ERR! node-pre-gyp ERR! node -v v15.14.0 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.14.0 npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in: npm ERR! /home/*/.npm/_logs/2021-05-27T17_22_58_874Z-debug.log

MeechaPooch avatar May 27 '21 18:05 MeechaPooch

I am having the same issue

paolagabriellas avatar Jul 13 '21 03:07 paolagabriellas

I am having the same issue

If using Unix (Mac/Linux) make an sh script with the following (otherwise you can just manually install these):

npm install @mapbox/node-pre-gyp
npm install question-answering@latest

If you look up node-pre-gyp you will find that it is obsolete and it tells you to upgrade to @mapbox/node-pre-gyp. This should solve your issue!

Sir-Ignis avatar Sep 02 '21 16:09 Sir-Ignis

For me, installing node 12.18.3 solved this

MeechaPooch avatar Feb 26 '22 18:02 MeechaPooch

This project seriously needs an update.

JeffMII avatar Mar 22 '22 22:03 JeffMII

Node versions above 12 are not working. See https://github.com/huggingface/node-question-answering/issues/41#issuecomment-1040020971

creatorrr avatar Jul 18 '22 03:07 creatorrr