Touchbar commands changes path to home directory when setting `npm.bin`
See original GitHub issueUsing the command palette in VS code correctly uses yarn
for the command executed. With the recent release of this extension (addition of Touchbar controls) the touchbar was using npm
instead or yarn
as defined in my user settings.json
(npm.packageManager
).
I set npm.bin
to point to yarn, but this has a undesired consequence of always first executing cd ${HOME}
and then running the command (yarn install
in this case).
To Reproduce
Add the following to your settings.json
:
"npm.bin": "yarn",
"npm.packageManager": "yarn"
"npm.runInTerminal": true,
- Open a Node.js project on macOS
- Using the Touchbar, tap Install.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
Touchbar commands changes path to home directory when setting ...
Using the command palette in VS code correctly uses `yarn` for the command ... Touchbar commands changes path to home directory when setting...
Read more >macos - npm global path prefix - Stack Overflow
I am on a Mac and have installed node.js through brew install node . Now that I want to run jslint.js on the...
Read more >1. Configuring a Desktop Environment - Linux Annoyances for ...
In the Command text box, enter the complete path, /usr/bin/kword . ... To make sure these changes are part of the home directories...
Read more >npm - Visual Studio Marketplace
npm install ; npm start; npm test; npm build. touch bar support. Settings. npm.runInTerminal defines whether the command is ...
Read more >The Complete Examples and Tutorials - CFEngine 3.21 Docs
If we change '/bin/echo one' to '/bin/echox one', then the command will fail, ... the path of the remote file system and the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just tried it on another developer’s machine, fresh extension install, different project - same result. It really does not matter if using yarn or not. All I set was the new
npm.enableTouchbar: true
on his configuration.Using touchbar - changes to user directory Using command palette - changes to project directory
Thanks @matextrem. I’ll debug my bash profile configuration incase there is something causing this. I’ll get back to you.