From 3cfb595765b7c49c7fff70433e7b1f9a2bb686f6 Mon Sep 17 00:00:00 2001 From: Kas-tle <26531652+Kas-tle@users.noreply.github.com> Date: Thu, 26 May 2022 03:32:51 +0000 Subject: [PATCH] Note about node global path --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 08eaf6a..0e4b7ed 100644 --- a/README.md +++ b/README.md @@ -81,8 +81,14 @@ npm i -g spritesheet-js ### Windows Impossible; consider [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10). -#### Special Notes for WSL +#### Special Notes for WSL (Ubuntu) + In general, packages on WSL seem to be a little wonky, and sometimes jq-1.5 will be installed, which will not work. To manually install jq-1.6 on WSL, at least for Ubuntu: ```sh wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && sudo chmod +x jq-linux64 && sudo mv jq-linux64 /usr/bin/jq ``` + +If you install spritesheet-js globally, but the script fails due to missing the dependency, ensure that the folder containing your global node modules is added to your path. If, after installing, `which spritesheet-js` returns no output, you may add global node modules to your path by: +```sh +echo "export PATH=$PATH:$(npm config --global get prefix)/bin" >> ~/.bashrc && source ~/.bashr +``` \ No newline at end of file