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

Check if grunt-cli is installed does not work properly #711

Open
goessebr opened this issue Jul 4, 2022 · 0 comments
Open

Check if grunt-cli is installed does not work properly #711

goessebr opened this issue Jul 4, 2022 · 0 comments

Comments

@goessebr
Copy link
Contributor

goessebr commented Jul 4, 2022

If you don't have grunt-cli installed on your system, the prepare command breaks with an unexpected output.

Steps to reproduce:

(atramhasis) goessebr@aruna:~/dev/atramhasis$ npm uninstall -g grunt-cli
removed 59 packages in 0.293s

┌────────────────────────────────────────────────────────────┐
│                  npm update check failed                   │
│            Try running with sudo or get access             │
│            to the local update config store via            │
│ sudo chown -R $USER:$(id -gn $USER) /home/goessebr/.config │
└────────────────────────────────────────────────────────────┘
(atramhasis) goessebr@aruna:~/dev/atramhasis$ npm list -g grunt-cli
/home/goessebr/.nvm/versions/node/v14.19.3/lib
└── (empty)

(atramhasis) goessebr@aruna:~/dev/atramhasis$ python setup.py prepare 
running prepare
--------------------------------------------------
==> check npm dependencies
Traceback (most recent call last):
  File "setup.py", line 72, in <module>
    setup(name='atramhasis',
  File "/home/goessebr/.virtualenvs/atramhasis/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "setup.py", line 41, in run
    dojo_build()
  File "setup.py", line 18, in dojo_build
    libs = str(subprocess.check_output(["npm", "list", "-g", "grunt-cli"]))
  File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['npm', 'list', '-g', 'grunt-cli']' returned non-zero exit status 1.

To fix it, install grunt-cli again
(atramhasis) goessebr@aruna:~/dev/atramhasis$ npm install -g grunt-cli

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

No branches or pull requests

1 participant