I have been developing a couple of Node.js applications lately that are supposed to be running on a RaspberyPi. And while I am doing the development exclusively on my Windows PC using Visual Studio Code and GitHub repositories for deploying the apps to the RaspberryPi, sometimes there is the need to edit and patch some files directly on the target system.
Then, these simple steps did the trick for me:
- Change into the directory where all the other .nanorc files are stored. (Technically, you could store them anywhere but I like to keep things neat and tidy.)
A js.nanorc file should now show up in your /usr/share/nano directory.
- Nano keeps its global configuration in a file called /etc/nanorc. It’s good practice to have a copy of this file in your user profile and override or extend settings there.
So if you don’t have this file already, create it:
cp /etc/nanorc ~/.nanorc