Skip to content

initial_sockpuppet fails without access to install global npm packages #115

Open
@sagannotcarl

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions