Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mohammedayub44 opened this issue Oct 1, 2019 · 3 comments
Assignees

Comments

@mohammedayub44
Copy link

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

@HendrikStrobelt
Copy link
Owner

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 HendrikStrobelt self-assigned this Oct 3, 2019
@mohammedayub44
Copy link
Author

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.

@Leslie-Fang
Copy link

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

Leslie-Fang added a commit to Leslie-Fang/Seq2Seq-Vis that referenced this issue Oct 16, 2019
New version of nodejs would cause the failure in npm install
HendrikStrobelt#29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants