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

Getting issue while installing the packer files #89

Open
VinayChaurasiyaA opened this issue Aug 19, 2023 · 4 comments
Open

Getting issue while installing the packer files #89

VinayChaurasiyaA opened this issue Aug 19, 2023 · 4 comments

Comments

@VinayChaurasiyaA
Copy link

Error detected while processing :source (no file): E5108: Error executing lua [string ":source (no file)"]:6: module 'packer' not found: no field package.preload['packer'] no file './packer.lua' no file '/data/data/com.termux/files/usr/share/luajit-2.1.0-beta3/packer.l ua' no file '/usr/local/share/lua/5.1/packer.lua' no file '/usr/local/share/lua/5.1/packer/init.lua' no file '/data/data/com.termux/files/usr/share/lua/5.1/packer.lua' no file '/data/data/com.termux/files/usr/share/lua/5.1/packer/init.lua' no file './packer.so' no file '/usr/local/lib/lua/5.1/packer.so' no file '/data/data/com.termux/files/usr/lib/lua/5.1/packer.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'require' [string ":source (no file)"]:6: in main chunk

@VinayChaurasiyaA
Copy link
Author

`local ensure_packer = function()
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[packadd packer.nvim]]
return true
end
return false
end

local packer_bootstrap = ensure_packer()

return require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
-- My plugins here
-- use 'foo1/bar1.nvim'
-- use 'foo2/bar2.nvim'

-- Automatically set up your configuration after cloning packer.nvim
-- Put this at the end after all plugins
if packer_bootstrap then
require('packer').sync()
end
end)`

  • I found out this solution but don't know how to where or how to run this program

@MaymoonaAlBoloshi
Copy link

were you able to resolve this.. getting the same for most of the packages? The only change I made was to rename the init.lua folder to nvim

@MaymoonaAlBoloshi
Copy link

@VinayChaurasiyaA
for me, I opened the packer.lua file, it can be found in lua/theprimagean/packer.lua
and ran :so
then if no errors happen I ran :PackerSync in the same file and things worked :)

@vagnermaltauro
Copy link

vagnermaltauro commented Jan 8, 2024

git clone --depth 1 https://github.com/wbthomason/packer.nvim\
 ~/.local/share/nvim/site/pack/packer/start/packer.nvim

it worked for me

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

No branches or pull requests

3 participants