drawrowfly / tiktok-scraper

TikTok Scraper. Download video posts, collect user/trend/hashtag/music feed metadata, sign URL and etc.
4.43k stars 800 forks source link

Error: Cannot find module '../build' #103

Closed kilpsz closed 4 years ago

kilpsz commented 4 years ago

Describe the bug Getting error when trying to start tiktok-scraper in cmd.

If fields below will be empty then issue will be Ignored and Closed

To Reproduce Steps to reproduce the behavior: Start cmd, type tiktok-scraper ; get errors

Screenshots ihiHW0D

drawrowfly commented 4 years ago

To avoid extra questions and etc from mine side you need to fill all the fields?

Scraper Version - Latest? version of the scraper?

tiktok-scraper --version

kilpsz commented 4 years ago

I can't do that since I get the error in picture when doing anything tiktok-scraper related

drawrowfly commented 4 years ago

tiktok-scraper --version is not related to the scraping process

kilpsz commented 4 years ago

Oh, i still get the same error though.

https://i.imgur.com/eocngOQ.png

drawrowfly commented 4 years ago

did you tried to reinstall it completely ? If yes then post here content of a file C:\Users\keith\tiktok-scraper\package.json

kilpsz commented 4 years ago

I tried but i don't know if i did it properly so imma paste the json file just in case.

{ "name": "tiktok-scraper", "version": "1.1.9", "description": "TikTok Scraper & Downloader. Scrape information from User, Trending and HashTag pages and download video posts", "main": "./build/index.js", "types": "./build/index.d.ts", "bin": { "tiktok-scraper": "bin/cli.js" }, "files": [ "build" ], "dependencies": { "archiver": "^3.1.1", "async": "^3.1.0", "bluebird": "^3.7.1", "jsdom": "^16.0.1", "json2csv": "4.5.1", "ora": "^4.0.2", "progress": "^2.0.3", "request": "^2.88.0", "request-promise": "^4.2.4", "socks-proxy-agent": "^5.0.0", "yargs": "^14.2.0" }, "devDependencies": { "@types/archiver": "^3.1.0", "@types/bluebird": "^3.5.30", "@types/jest": "^25.1.4", "@types/json2csv": "^4.5.1", "@types/ora": "^3.2.0", "@types/progress": "^2.0.3", "@types/request": "^2.48.4", "@types/request-promise": "^4.1.45", "@typescript-eslint/eslint-plugin": "^2.24.0", "@typescript-eslint/parser": "^2.24.0", "eslint": "^6.8.0", "eslint-config-airbnb-base": "^14.0.0", "eslint-config-prettier": "^6.10.0", "eslint-plugin-import": "^2.20.1", "eslint-plugin-prettier": "^3.1.2", "jest": "^25.1.0", "jest-canvas-mock": "^2.2.0", "prettier": "^1.19.1", "ts-jest": "^25.2.1", "ts-node": "^8.8.1", "typescript": "^3.8.3" }, "scripts": { "build": "rimraf build && tsc", "docker:build": "tsc", "format": "prettier --config ./.prettierrc.js --write './src//*.ts'", "lint": "eslint ./src/*/.ts", "test": "eslint ./src//.ts && jest --coverage --verbose" }, "jest": { "verbose": true, "transform": { "^.+\.tsx?$": "ts-jest" }, "setupFiles": [ "jest-canvas-mock" ], "testRegex": "(/tests/.|(\.|/)(test|spec))\.(jsx?|tsx?)$", "moduleFileExtensions": [ "ts", "tsx", "js", "jsx", "json", "node" ] }, "repository": { "type": "git", "url": "git+https://github.com/drawrowfly/tiktok-scraper.git" }, "keywords": [ "TikTok", "Scraper" ], "author": "Andrew Nord andrew.nord.flow@gmail.com", "license": "MIT", "bugs": { "url": "https://github.com/drawrowfly/tiktok-scraper/issues" }, "homepage": "https://github.com/drawrowfly/tiktok-scraper#readme" }

drawrowfly commented 4 years ago

My guess is that when you install the package there are not enough permissions to write folders

Post here screenshot of the folder content C:\Users\keith\tiktok-scraper\

kilpsz commented 4 years ago

https://i.imgur.com/6vVsfdH.png

kilpsz commented 4 years ago

Oh i got it now, now sure what i did wrong in the beginning since i did so many things,but to fix i had to delete all the stuff from npm folder and then install it again.

ProgrammingLife commented 3 years ago

I have absolutely the same issue after installing it with: sudo npm i -g . from a just downloaded local folder.