superset icon indicating copy to clipboard operation
superset copied to clipboard

Building from source: npm run dev-server Error

Open Rijicp opened this issue 7 years ago • 16 comments

npm run dev-server

[email protected] dev-server /usr/local/incubator-superset/superset/assets webpack-dev-server --mode=development --progress

sh: 1: webpack-dev-server: not found

npm ERR! Linux 4.15.0-20-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "dev-server"
npm ERR! node v8.10.0
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] dev-server: `webpack-dev-server --mode=development --progress`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] dev-server script 'webpack-dev-server --mode=development --progress'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the superset package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack-dev-server --mode=development --progress
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs superset
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls superset
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /usr/local/incubator-superset/superset/assets/npm-debug.log

Rijicp avatar Feb 01 '19 14:02 Rijicp

Did you run npm ci or npm install from the superset/assets folder prior to this?

mistercrunch avatar Feb 01 '19 20:02 mistercrunch

i got following error

Run the dev server

npm run dev-server Error occured while trying to proxy to: localhost:9000/

WARNING in ./node_modules/@superset-ui/connection/esm/index.js 1:42-122 "export 'SupersetClientInterface' was not found in './SupersetClient' @ ./src/setup/setupClient.js @ ./src/preamble.js @ multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js babel-polyfill ./src/preamble.js ℹ 「wdm」: Compiled with warnings. [HPM] Error occurred while trying to proxy request / from 127.0.0.1:9000 to http://localhost:8088 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors) [HPM] Error occurred while trying to proxy request /favicon.ico from 127.0.0.1:9000 to http://localhost:8088 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)

Rijicp avatar Feb 04 '19 06:02 Rijicp

Have you started the flask server?

kristw avatar Feb 04 '19 22:02 kristw

No i didn't start flask server

Rijicp avatar Feb 05 '19 06:02 Rijicp

So i re-installed with same step.then run in superset/asset folder but currently i stuck root@ivl:/usr/local/incubator-superset/superset/assets# npm run dev-server

[email protected] dev-server /usr/local/incubator-superset/superset/assets webpack-dev-server --mode=development --progress

clean-webpack-plugin: /usr/local/incubator-superset/superset/assets/dist has been removed. Starting type checking service... Using 1 worker with 2048MB memory limit 10% building 8/8 modules 0 activeevents.js:183
throw er; // Unhandled 'error' event ^

Error: listen EADDRINUSE 127.0.0.1:9000 at Object._errnoException (util.js:1022:11) at _exceptionWithHostPort (util.js:1044:20) at Server.setupListenHandle [as _listen2] (net.js:1367:14) at listenInCluster (net.js:1408:12) at GetAddrInfoReqWrap.doListen [as callback] (net.js:1517:7) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:97:10)

npm ERR! Linux 4.15.0-20-generic npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "dev-server" npm ERR! node v8.10.0 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE npm ERR! [email protected] dev-server: webpack-dev-server --mode=development --progress npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] dev-server script 'webpack-dev-server --mode=development --progress'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the superset package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! webpack-dev-server --mode=development --progress npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs superset npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls superset npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

Rijicp avatar Feb 05 '19 06:02 Rijicp

Now working

Rijicp avatar Feb 05 '19 11:02 Rijicp

How did you solve this issue? I am getting the same issue on my EC2 instance

coderfender avatar Apr 24 '19 23:04 coderfender

How did you solve this issue? I am getting the same issue on my EC2 instance

did you resolve it? I also have this problem

gordonfl avatar May 09 '19 03:05 gordonfl

I was able to resolve it

coderfender avatar May 09 '19 04:05 coderfender

how did you resolved?

gordonfl avatar May 09 '19 05:05 gordonfl

Just run npm run server in a different service

coderfender avatar May 24 '19 05:05 coderfender

meet this too today, in docker

tlightsky avatar Apr 29 '20 06:04 tlightsky

I was facing the same issue. Just check whether any instance is running on that port already. I was using docker and did docker-compose down. Then it worked.

Alfran007 avatar Jul 30 '20 11:07 Alfran007

Just run npm run server in a different service

can you tell me exactly how did you resolve this ? Thanks

str028 avatar Oct 29 '20 02:10 str028

Just run npm run server in a different service

can you tell me exactly how did you resolve this ? Thanks

I had done by replace the host address to correct running superset server in cypress.json and webpack-proxy-config.js

gho1b avatar Oct 30 '22 00:10 gho1b

we need to start orther services. Go to superset repo and run docker compose -f docker-compose-non-dev.yml up

DuyKhanhVu avatar Feb 17 '23 03:02 DuyKhanhVu