0

My specifications:

C:\Users\new>node -v
v14.17.1
C:\Users\new>npm -v
6.14.13
C:\Users\new>py -V
Python 3.9.5
C:\Users\new>cmd
Microsoft Windows [Version 10.0.19042.1052]
(c) Microsoft Corporation. All rights reserved.

Windows 32-Bit I create a lot of telegram bots with python. I want to create telegram bot with node. I tried to install node-telegram-bot-api but npm is not installing that. Here are those logs:

F:\nodejs-telegram-bots\bot-1>npm i node-telegram-bot-api
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm ERR! code UNKNOWN
npm ERR! syscall open
npm ERR! path C:\Users\new\AppData\Roaming\npm-cache\_cacache\index-v5\e1\f64466258647476円fcd56918517f073f7a7586495b3bd3f1029a99ffca77596
npm ERR! errno -4094
npm ERR! UNKNOWN: unknown error, open 'C:\Users\new\AppData\Roaming\npm-cache\_cacache\index-v5\e1\f64466258647476円fcd56918517f073f7a7586495b3bd3f1029a99ffca77596'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\new\AppData\Roaming\npm-cache\_logs2021円-06-24T12_10_33_145Z-debug.log

I have used npm cache clean

F:\nodejs-telegram-bots\bot-1>npm cache clean
npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On the other hand, if you're debugging an issue with the installer, you can use `npm install --cache /tmp/empty-cache` to use a temporary cache instead of nuking the actual one.
npm ERR! 
npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\new\AppData\Roaming\npm-cache\_logs2021円-06-24T12_42_29_100Z-debug.log

and also npm cache clean --force

F:\nodejs-telegram-bots\bot-1>npm cache clean --force
npm WARN using --force I sure hope you know what you are doing.
npm ERR! code UNKNOWN 
npm ERR! syscall unlink
npm ERR! path C:\Users\new\AppData\Roaming\npm-cache\_cacache\index-v525円
npm ERR! errno -4094
npm ERR! UNKNOWN: unknown error, unlink 'C:\Users\new\AppData\Roaming\npm-cache\_cacache\index-v525円'
asked Jun 24, 2021 at 12:30

1 Answer 1

1

Check free space or permissions. Cleaning cache also can helps

Everything work on linux system :

# npm i node-telegram-bot-api
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
+ [email protected]
added 98 packages from 132 contributors and audited 98 packages in 10.391s
23 packages are looking for funding
 run `npm fund` for details
found 0 vulnerabilities
answered Jun 24, 2021 at 12:39
Sign up to request clarification or add additional context in comments.

2 Comments

Everything work with node 12 on linux system :
That does not work, I have added that too see.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.