A server for chrome-devtools-autosave.
- Install Node.js
- Open a terminal (Terminal.app on Mac OS X, cmd.exe on Windows)
- Run
npm install -g autosave
It fails with "Error: EACCES, permission denied". What should I do?
sudo npm install -g autosave
Run autosave in the terminal.
You should see something like "DevTools Autosave is running on http://127.0.0.1:9104".
It doesn’t work on Windows. I’m having
'autosave' is not recognized as an internal or external command
Have you tried turn it it off and on again? Seriously, restart the system.
By default, Autosave only accepts URLs that starts with file://. For the other URLs it shows:
Let’s say you want to edit http://mydomain.local/main.css; the actual file is located in /Volumes/mydomain.local/main.css.
To do so, you need to run autosave --config routes.js; routes.js file looks like this:
exports.routes = [
{
from: new RegExp('^http://mydomain\.local/'),
to: '/Volumes/mydomain.local/'
}
];Step by step:
- Create a routes.js with the above content
- Save it in ~/.autosave/routes.js (or any other location, it doesn’t matter)
- Run
autosave --config ~/.autosave/routes.js
