Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

automatic run nodejs and throw some error #898

Closed
koke2c95 opened this issue May 14, 2019 · 3 comments
Closed

automatic run nodejs and throw some error #898

koke2c95 opened this issue May 14, 2019 · 3 comments

Comments

@koke2c95
Copy link

koke2c95 commented May 14, 2019

  • pyspider version: 0.3.10
  • Operating system: windows 10
  • Start up command: pyspider

Expected behavior

normal run

Actual behavior

throw Error: Cannot find module 'express' * N

exec 2 nodejs process and exit over over again

How to reproduce

install nodejs into windows path

then run pyspider

solved

remove nodejs from windows path

@snail-lb
Copy link

You'll need to install node components: express, puppeteer, and body-parser before starting

@koke2c95
Copy link
Author

@snail-lb
no ... remove node.exe from path

running no error

@hubitor
Copy link

hubitor commented Nov 20, 2019

I was getting the same error. The documentation is not updated.

In pyspider/fetcher/puppeteer_fetcher.js you can find this:

const express = require("express");
const puppeteer = require('puppeteer');
const bodyParser = require('body-parser');

I have installed the 3 node packages within the pyspider folder:
$ npm install express puppeteer body-parser

and the error is gone.

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

No branches or pull requests

3 participants