ecpbi opened a new issue #15496:
URL: https://github.com/apache/superset/issues/15496


   Hello
   
   I use Ubuntu 20.04.
   
   I tried to install a development environment for the creation of custom 
vizualisations by folllowing the tutorial at 
[https://superset.apache.org/docs/installation/building-custom-viz-plugins]. 
Unfortunately, I could not achieve this procedure as the Run npm run dev-server 
to spin up the Webpack hot-reloading server fails. 
   First cause is there is no package.json file in the superset directory. 
   Second, after copying the package.json from superset-frontend, the process 
fails :
   
   $  npm run dev-server 
   
   > [email protected] dev-server /home/superset/superset
   > cross-env NODE_ENV=development BABEL_ENV=development node 
--max_old_space_size=4096 
./node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode=development
   
   sh: 1: cross-env: not found
   npm ERR! code ELIFECYCLE
   npm ERR! syscall spawn
   npm ERR! file sh
   npm ERR! errno ENOENT
   npm ERR! [email protected] dev-server: `cross-env NODE_ENV=development 
BABEL_ENV=development node --max_old_space_size=4096 
./node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode=development`
   npm ERR! spawn ENOENT
   npm ERR! 
   npm ERR! Failed at the [email protected] dev-server script.
   npm ERR! This is probably not a problem with npm. There is likely additional 
logging output above.
   npm WARN Local package.json exists, but node_modules missing, did you mean 
to install?
   
   npm ERR! A complete log of this run can be found in:
   npm ERR!     /home/superset/.npm/_logs/2021-07-01T10_02_12_071Z-debug.log
   
   I think the tutorial should be corrected or completed.
   
   Thank you in advance


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to