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

Subcommand execution ignore user-defined path #4282

Closed
Glandos opened this issue Jul 12, 2019 · 1 comment
Closed

Subcommand execution ignore user-defined path #4282

Glandos opened this issue Jul 12, 2019 · 1 comment

Comments

@Glandos
Copy link

Glandos commented Jul 12, 2019

Version

3.9.2

Environment info

  System:
    OS: Linux 4.19 Debian GNU/Linux 10 (buster) 10 (buster)
    CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
  Binaries:
    Node: Not Found
    Yarn: 1.13.0
    npm: 5.8.0
  Browsers:
    Chrome: Not Found
    Firefox: 68.0
  npmPackages:
    @nuxt/vue-app:  2.8.1 
    @nuxt/vue-renderer:  2.8.1 
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0 
    @vue/babel-plugin-transform-vue-jsx:  1.0.0 
    @vue/babel-preset-jsx:  1.0.0 
    @vue/babel-sugar-functional-vue:  1.0.0 
    @vue/babel-sugar-inject-h:  1.0.0 
    @vue/babel-sugar-v-model:  1.0.0 
    @vue/babel-sugar-v-on:  1.0.0 
    @vue/component-compiler-utils:  2.6.0 
    babel-helper-vue-jsx-merge-props:  2.0.3 
    eslint-plugin-vue: ^5.2.2 => 5.2.3 
    vue:  2.6.10 
    vue-eslint-parser:  5.0.0 
    vue-hot-reload-api:  2.3.3 
    vue-loader:  15.7.0 
    vue-meta:  1.6.0 
    vue-no-ssr:  1.1.1 
    vue-router:  3.0.7 
    vue-server-renderer:  2.6.10 
    vue-style-loader:  4.1.2 
    vue-template-compiler:  2.6.10 
    vue-template-es2015-compiler:  1.9.1 
    vuex:  3.1.1 
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

Install official yarnpkg Debian package
Run ln -s /usr/bin/yarnpkg /usr/local/bin/yarn

Run vue add i18n

What is expected?

The installation should be fine.

The PATH environment variable must be used.

What is actually happening?

📦  Installing vue-cli-plugin-i18n...

 ERROR  command failed: yarn add -D vue-cli-plugin-i18n

Running strace show the following:

execve("yarn", ["yarn", "add", "-D", "vue-cli-plugin-i18n"], [[TRUNCATED], "PATH=/home/Glandos/Documents/netbeans/test/VueTest/node_modules/.bin:/home/Glandos/Documents/netbeans/test/node_modules/.bin:/home/Glandos/Documents/netbeans/node_modules/.bin:/home/Glandos/Documents/node_modules/.bin:/home/Glandos/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/usr/bin:"]) = -1 ENOENT (Aucun fichier ou dossier de ce type)

Here is my PATH:

> echo $PATH
/home/Glandos/.yarn/bin/ /home/Glandos/.local/bin/ /usr/local/bin /usr/bin /bin /usr/local/games /usr/games
@Glandos
Copy link
Author

Glandos commented Jul 12, 2019

It is linked to sindresorhus/execa#153
See here for details.

@Glandos Glandos closed this as completed Jul 12, 2019
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

1 participant