Problem moving website with .gitignore

I am having difficulties installing the website from git. After I run composer install --no-dev -o I get this error:
Class 'Twig_Cache_Filesystem' not found

This is my .gitignore file, isn’t composer install --no-dev -o enough to install it?

# Composer
.composer
/vendor

# Sass
.sass-cache

# Grav Specific
backup/*
!backup/.*
cache/*
!cache/.*
assets/*
!assets/.* 
logs/*
!logs/.*
images/*
!images/.*
user/accounts/*
!user/accounts/.*
user/data/*
!user/data/.*
user/plugins/*
!user/plugins/.*
user/localhost/config/security.yaml

# template
user/themes/docs/node_modules/
user/themes/docs/dist/

# OS Generated
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
*.swp

# phpstorm
.idea/*
user/config/security.yaml

tests/_output/*
tests/_support/_generated/*
tests/cache/*
tests/error.log

BTW, should I commit the plugins folder? Does anybody have a safe (security wise) .gitignore file that will allow me to install it easily from github?

I’m not sure how Composer handles this install, but I always commit the plugins folder as it also updates at times. As I don’t use the admin plugin on live, or in staging, it is entirely secure because there are no avenues for attack other than potentially Grav itself or server-access - neither of which seems to be a problem.

I use the following for pushing to a staging repository. Basically includes everything from Grav except for the cache and logs, and excludes common development files.

# Grav
/cache
/logs

# Created by https://www.gitignore.io/api/node,bower,sass,windows

### Node ###
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid 
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

### Bower ###
bower_components
.bower-cache
.bower-registry
.bower-tmp

### Sass ###
.sass-cache/
*.css.map

### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

Thanks, I got it working by removing /vendor/ and /plugins/ from gitignore. I can’t remove the others because I have installed the admin panel.