Skip to content

Instantly share code, notes, and snippets.

Josef Brandl MajorBreakfast

Block or report user

Report or block MajorBreakfast

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MajorBreakfast
MajorBreakfast / README.md
Last active Apr 4, 2017
Change npm global install folder
View README.md

How to change npm's global install folder

It can happen that npm install -g <package-name> reports an EPERM error. This means that npm isn't allowed to write to the directory without administrator rights. To fix this npm needs to be configured so that it uses a different folder.

Windows

1. Change npm config

npm config set prefix "%AppData%/npm"
@MajorBreakfast
MajorBreakfast / broccoli
Last active Aug 29, 2015
Analysis of Broccoli
View broccoli
# Strengths
- No leftover files
- Solved by passing temporary directories between plugins (i.e. tasks)
# Weaknesses
- No parallel plugin execution
- No parallel tasks: Independent tasks could execute in parallel
- No parallel builds: Can't decouple independent parts, e.g. unit tests from rest
- Code base issues
View api-errors.md

If a request fails the server SHOULD answer with an error which is stored in the "error" property. The simplest form ist just a string with the type of the error:

{
  "error": "csrfTokenInvalid"
}

Error types SHOULD be in camelCase starting with a lowercase letter and SHOULD NOT end with "Error".

The more elaborate form is providing an error object. Error objects MUST hold a "type" property with the type of the error:

@MajorBreakfast
MajorBreakfast / dasherized-filenames.md
Last active Dec 27, 2015
Dasherized file/foldernames
View dasherized-filenames.md
You can’t perform that action at this time.