@schajuli I feel like this should work, but I'll have to try it and see if I can reproduce the issue you're seeing.
The pidfile errors are probably because the files you copied over don't have the right permissions.
Hello there, I contacted with nodebb to make a plugin for me. Because I am not familiar with git, it shows the following
[email protected]:/nodebb# cd node_modules/
[email protected]:/nodebb/node_modules# git checkout https://github.com/NodeBB/nodebb-plugin-xxx.git
error: pathspec 'https://github.com/NodeBB/nodebb-plugin-xxx.git' did not match any file(s) known to git.
But I can access it by Chrome (I need to log in github). So I assume I need to log in somewhere, anybody knows? Thank you.
Ok. I tried the following
git config --global user.name "xxx"
git config --global user.email "[email protected]"
Same problem
If you are having trouble using a plugin you paid NodeBB to make, I suggest you ask for help from [email protected]
I'm not really sure what you're trying to do here - if you want to copy a repository to a local folder you should use git clone
and not git checkout
- the latter is used for switching branches and generally moving to a different version of a repository.
However, got should not be used to install a plugin. NPM is the utility you're looking for. It supports two methods of authentication for GitHub private repositories - OAuth and SSH.
For OAuth you'll need to generate a personal access token (settings>developer settings>personal access tokens) with permission to read private repositories (just repository permissions if I remember correctly), and then go to the main NodeBB directory and use npm install git+https://<github_token>:[email protected]/NodeBB/nodebb-plugin-xxx.git
If you prefer to use SSH instead, follow the instructions here to generate the keys and add to your account, and then run in the main NodeBB folder npm install git+ssh://[email protected]/NodeBB/nodebb-plugin-xxx.git