简体   繁体   中英

How to run installed packages with npm

I have a problem, which may be very obvious to many, but not so much to me, what happens is that in python I was used to installing packages and immediately using them without any problem (for example https://github.com/spotDL/spotify-downloader ). However, I try to do the same in node, but it does not allow me, for example I would like to use https://github.com/drawrowfly/tiktok-scraper , however when I carry out the steps that the page indicates, I cannot execute the command, I would like to add that I have Node installed, and that I installed the package without any problem. However I can't use it, (I don't need to implement in any project, I just would like to take a look at the tool)... Any help you can give me would be excellent. I would like to clarify that I am using Windows for this.

You have to install the package globally with -g flag.

npm i -g tiktok-scraper
tiktok-scraper <args>

Alternatively, you can use npx

npx tiktok-scraper <args>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM