Skip to content

Commit

Permalink
Add sudo to example runner script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeden committed Apr 4, 2022
1 parent 8518072 commit 7085d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"build": "npm run clean && node-gyp rebuild && tsc -p src",
"check": "npx tsc --noEmit",
"clean": "rm -rf dist",
"example": "ts-node -P examples/tsconfig.json",
"example": "sudo ts-node -P examples/tsconfig.json",
"format": "prettier --write src/ examples/",
"lint": "eslint src/ examples/",
"merge-submodule-upstream": "(cd vendor && git fetch && git merge origin/master)",
Expand Down

1 comment on commit 7085d7a

@dpslwk
Copy link

@dpslwk dpslwk commented on 7085d7a Aug 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getting an error with this change

~/github/rpi-led-matrix $ sudo npm run example -- examples/sync-hooks.ts

> [email protected] example
> sudo ts-node -P examples/tsconfig.json "examples/sync-hooks.ts"

sudo: ts-node: command not found

fresh pi install, fresh node 16 install, fresh clone and npm Install, so I don't have ts-node globally installed

Please sign in to comment.