Seq2Seq-Vis icon indicating copy to clipboard operation
Seq2Seq-Vis copied to clipboard

Running the setup_cpu.sh script on Ubuntu 16.04 fails with errors in npm

Open mohammedayub44 opened this issue 5 years ago • 3 comments

Hi,

Just cloned the repo and ran the setup_cpu.sh script as instructed, gives me errors during the build with npm packages. Specifically the ``sass-loaderrequiresnode-sass >=4. Please install a compatible version

Command Used: source setup_cpu.sh

Screenshot:

image

Complete Log File: 2019-10-01T14_24_22_398Z-debug.log

mohammedayub44 avatar Oct 01 '19 14:10 mohammedayub44

Thanks. I will try to update the files such that the newest sass will be installed. For now, try running npm update sass and then npm run wp. That might work.

HendrikStrobelt avatar Oct 03 '19 03:10 HendrikStrobelt

Updating sass module did not work, I went down this rabbit hole of fixing individual package dependencies with npm audit etc. and that did not work either.

Fix Used:

Finally, The trick was to installed the older version of nodejs ,

Commands:

conda uninstall nodejs conda install nodejs==9.11.1 -c conda-forge

which node should give <your conda path>/bin/node node --version #Just to verify npm -V #Just to verify

image

image

Just a thought, pip freezeing all the python/conda packages for next version would be helpful in replicating.

mohammedayub44 avatar Oct 04 '19 03:10 mohammedayub44

Thanks @mohammedayub44 I have met the similar problem. And use the older version of nodejs solves this problem.

Leslie-Fang avatar Oct 16 '19 06:10 Leslie-Fang