nvbn / django-bower

Easy way to use bower with your django project
https://django-bower.readthedocs.io/
518 stars 74 forks source link

./manage bower install -> Permission Denied #32

Closed jcrubino closed 9 years ago

jcrubino commented 9 years ago

When I run the bower install script I get this:

[main@computer repo_project]$ ./manage.py bower install
Traceback (most recent call last):
  File "./manage.py", line 11, in 
    execute_from_command_line(sys.argv)
  File "/home/main/.virtualenvs/project/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/main/.virtualenvs/project/lib/python2.7/site-packages/django/core/management/__init__.py", line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/main/.virtualenvs/project/lib/python2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/main/.virtualenvs/project/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute
    output = self.handle(*args, **options)
  File "/home/main/.virtualenvs/project/lib/python2.7/site-packages/djangobower/management/commands/bower.py", line 10, in handle
    super(Command, self).handle(*args, **options)
  File "/home/main/.virtualenvs/project/lib/python2.7/site-packages/djangobower/management/base.py", line 13, in handle
    bower_adapter.create_components_root()
  File "/home/main/.virtualenvs/project/lib/python2.7/site-packages/djangobower/bower.py", line 26, in create_components_root
    os.mkdir(self._components_root)
OSError: [Errno 13] Permission denied: '/bower_components/'

also in use is cookiecutter django

jcrubino commented 9 years ago

solved: BOWER_COMPONENTS_ROOT ="bower_components/"

no preceeding forward slash