A
A
Andreykikof2019-07-05 22:35:32
macOS
Andreykikof, 2019-07-05 22:35:32

How to enable swap in Mac OS Mojave?

I foolishly disabled SWAP with the command - sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
And now I can’t enable it with commands
1. sudo launchctl load /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
2. sudo launchctl load -wF /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
please help. rebooted - does not help, still does not turn on. and at a high load began to hang. I really regret turning it off. p.s. can't reinstall

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir Vdovin, 2019-10-01
@TaurusSPB

SWAP (swap file) is enabled by
sudo launchctl load -wF /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist

A
Andrei Smirnov, 2017-09-21
@pinebit

Try using VS Code instead of Atom.
1. Install .eslintrc
2. Install ESLint plugin (dbaeumer.vscode-eslint)
(do not forget to install eslint npm package)
3. Add two lines to config (settings.json):

{
    "editor.formatOnSave": true,
    "eslint.autoFixOnSave": true
}

All. Now the error highlighting in the editor will be based on your ESLint config, and when you save the document, it will automatically try to fix everything it can, again according to .eslintrc.
Well, to complete the picture, we add a script to package.json:
Now you can also run eslint directly from the editor before release: Ctrl+Shift+P -> Run NPM Task -> Lint .

M
MarcBaracuda, 2018-03-09
@MarcBaracuda

In the project directory, in the terminal:
eslint init

A
Alexander, 2017-10-21
@alexsandr_s

have you read the linter-eslint readme? everything is clearly written there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question