Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10: sublime-esformatter can't find globally installed esformatter. #76

Open
airtonix opened this issue Apr 12, 2017 · 1 comment

Comments

@airtonix
Copy link

---------------------------
Sublime Text
---------------------------
It looks like esformatter is not installed.
Please make sure that it is installed globally or in project node_modules folder
---------------------------
OK   
---------------------------
zenobius@DEV4 C:\Data\Projects\MAC\mac020 [develop*]
$ npm i -g esformatter
C:\Program Files (x86)\Nodist\bin\esformatter -> C:\Program Files (x86)\Nodist\bin\node_modules\esformatter\bin\esformatter
C:\Program Files (x86)\Nodist\bin
`-- [email protected]

zenobius@DEV4 C:\Data\Projects\MAC\mac020 [develop*]
$ ls $env:NODE_PATH


    Directory: C:\Program Files (x86)\Nodist\bin\node_modules


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       19/12/2016  11:49 AM                bumped-changelog
d-----       19/12/2016  11:48 AM                bumped-finepack
d-----       19/12/2016  11:49 AM                bumped-terminal
d-----        5/12/2016  11:08 AM                del-cli
d-----       12/04/2017  11:35 AM                depercolator
d-----       12/04/2017  12:38 PM                esformatter
d-----       16/12/2016   9:56 AM                hpm-cli
d-----       20/12/2016  10:41 AM                json-stringify-safe
d-----        6/12/2016   1:58 PM                node-gyp
d-----        2/12/2016   4:18 PM                npm
d-----       11/04/2017   3:28 PM                remotedebug-ios-webkit-adapter
d-----        5/12/2016  11:08 AM                rimraf
d-----       21/12/2016  11:14 AM                slack-cli
d-----       21/12/2016  11:04 AM                slack-message
d-----       14/12/2016  10:05 AM                tough-cookie
d-----        5/12/2016  11:08 AM                trash-cli
d-----        6/12/2016   2:02 PM                windows-build-tools
d-----        6/04/2017  11:02 AM                yarn


zenobius@DEV4 C:\Data\Projects\MAC\mac020 [develop*]
$ ls "c:\Program Files (x86)\Nodist\bin\"


    Directory: C:\Program Files (x86)\Nodist\bin


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        6/12/2016  12:13 PM                etc
d-----       12/04/2017  12:38 PM                node_modules
-a----        5/12/2016  11:08 AM            319 del
-a----        5/12/2016  11:08 AM            319 del-cli
-a----        5/12/2016  11:08 AM            196 del-cli.cmd
-a----        5/12/2016  11:08 AM            196 del.cmd
-a----       12/04/2017  11:35 AM            333 depercolate
-a----       12/04/2017  11:35 AM            210 depercolate.cmd
-a----       12/04/2017  12:38 PM            345 esformatter
-a----       12/04/2017  12:38 PM            222 esformatter.cmd
-a----       16/12/2016   9:56 AM            323 hpm
-a----       16/12/2016   9:56 AM            200 hpm.cmd
-a----        6/12/2016   1:58 PM            339 node-gyp
-a----        6/12/2016   1:58 PM            216 node-gyp.cmd
-a----       24/10/2016   2:31 AM        3203584 node.exe
-a----       24/10/2016   2:31 AM             92 nodist
-a----       24/10/2016   2:31 AM            384 nodist.cmd
-a----       24/10/2016   2:31 AM            366 nodist.ps1
-a----       24/10/2016   2:31 AM            967 nodist.sh
-a----       24/10/2016   2:31 AM            174 nodist_bash_profile_content.sh
-a----        2/12/2016   4:18 PM            327 npm
-a----        2/12/2016   4:18 PM            204 npm.cmd
-a----       24/10/2016   2:31 AM        3210752 npm.exe
-a----       11/04/2017   3:28 PM            377 remotedebug_ios_webkit_adapter
-a----       11/04/2017   3:28 PM            254 remotedebug_ios_webkit_adapter.cmd
-a----        5/12/2016  11:08 AM            317 rimraf
-a----        5/12/2016  11:08 AM            194 rimraf.cmd
-a----       21/12/2016  11:04 AM            353 slack-message
-a----       21/12/2016  11:04 AM            230 slack-message.cmd
-a----       21/12/2016  11:14 AM            331 slackcli
-a----       21/12/2016  11:14 AM            208 slackcli.cmd
-a----        5/12/2016  11:08 AM            323 trash
-a----        5/12/2016  11:08 AM            200 trash.cmd
-a----        6/04/2017  11:02 AM            323 yarn
-a----        6/04/2017  11:02 AM            200 yarn.cmd
-a----        6/04/2017  11:02 AM            323 yarnpkg
-a----        6/04/2017  11:02 AM            200 yarnpkg.cmd


zenobius@DEV4 C:\Data\Projects\MAC\mac020 [develop*]
@piuccio
Copy link
Owner

piuccio commented Apr 12, 2017

You can set the path to esformatter in the config, that should work.

A better solution maybe is to change the code to use https://github.com/sindresorhus/run-node but I don't have time to try it, I'm not using sublime anymore and I don't have windows 10 either.

Feel free to send a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants