Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
docs: Add running specific node version to examples (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiscowper authored and zkat committed Dec 2, 2017
1 parent 752db48 commit 93c86e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ $ npx --node-arg=--inspect cowsay
Debugger listening on ws://127.0.0.1:9229/....
```

### Specify a node version to run npm scripts (or anything else!)

```
npx -p node@8 npm run build
```

## SHELL AUTO FALLBACK

You can configure `npx` to run as your default fallback command when you type something in the command line with an `@` but the command is not found. This includes installing packages that were not found in the local prefix either.
Expand Down

0 comments on commit 93c86e3

Please sign in to comment.