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

initial_sockpuppet fails without access to install global npm packages #115

Open
sagannotcarl opened this issue May 12, 2021 · 0 comments · May be fixed by #116
Open

initial_sockpuppet fails without access to install global npm packages #115

sagannotcarl opened this issue May 12, 2021 · 0 comments · May be fixed by #116

Comments

@sagannotcarl
Copy link

Bug Report

Describe the bug

I am unable to complete the install instructions from https://sockpuppet.argpar.se/setup-django.

I am trying to install sockpuppet with docker-compose python:3.7 container and the initial_sockpuppet command fails because it doesn't have access to the global npm install location.

When I run the command python manage.py initial_sockpuppet I get the following error:
Command 'npm install -g --force add-project-script' returned non-zero exit status 243.

From reading other issues it sounds like this package is only temporarily installed then removed. Is it possible to have this command be run non-globally in order to accommodate more installation situations?

I ended up working around the issue by following the steps here: https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally to set the npm global module location inside my user directory.

Expected behavior

Sockpuppet should install even when the user does not have access to the global npm directory.

Versions

Django-sockpuppet

  • django-sockpuppet 0.6.0

External tools

  • Python 3.7.10
  • Django: 3.2.2
  • OS: MacOS, docker-compose using python:3.7.10-buster container
@nerdoc nerdoc linked a pull request May 22, 2021 that will close this issue
2 tasks
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

Successfully merging a pull request may close this issue.

1 participant