question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Touchbar commands changes path to home directory when setting `npm.bin`

See original GitHub issue

Using 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,
  1. Open a Node.js project on macOS
  2. Using the Touchbar, tap Install.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
paulbatessonoscommented, May 9, 2019

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

1reaction
paulbatessonoscommented, May 9, 2019

Thanks @matextrem. I’ll debug my bash profile configuration incase there is something causing this. I’ll get back to you.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found