-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
--reinstall-packages-from fails when local repositories are npm link'd #1519
Comments
What's your IFS env var contain? |
Glad I still have that shell open! It's empty... printf %q "$IFS"
''% All other open shells have the default printf %q "$IFS"
\ $'\t'$'\n'% |
aha - if, in that same shell, you set it to the default, is the problem fixed? |
nope, I get the same result. The > printf %q "$IFS"
\ $'\t'$'\n'%
> nvm install v7.9.0 --reinstall-packages-from=v7.2.1
Downloading and installing node v7.9.0...
Local cache found: $NVM_DIR/.cache/bin/node-v7.9.0-darwin-x64/node-v7.9.0-darwin-x64.tar.xz
Checksums match! Using existing downloaded archive $NVM_DIR/.cache/bin/node-v7.9.0-darwin-x64/node-v7.9.0-darwin-x64.tar.xz
Now using node v7.9.0 (npm v4.2.0)
VERSION=''
xargs: unterminated quote
Reinstalling global packages from v7.2.1...
Linking global packages from v7.2.1...
nvm_cd:cd:2: no such file or directory: ...
> printf %q "$IFS"
''% |
Seems like #1518 is related, but that's not the entirety of the problem. Can you provide the output of |
(There's a totally separate issue where IFS isn't reset inside |
Ah progress! Looks like I had one Linking global packages from v7.2.1...
nvm_cd:cd:2: no such file or directory: /path/to/link-a\n/path/to/link-b\n/path/to/link-c... |
@patrickhulce i'd still have needed to see the original output of those commands to fix the problem :-/ can you provide the output requested in #1519 (comment) ? |
Now using node v7.2.1 (npm v3.10.10)
npm ERR! extraneous: mocha@3.2.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/generator-npm-package/node_modules/mocha
npm ERR! extraneous: @types/node@6.0.46 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/@types/node
npm ERR! extraneous: coveralls@2.11.14 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/coveralls
npm ERR! extraneous: eslint@3.12.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/eslint
npm ERR! extraneous: eslint-config-google@0.7.1 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/eslint-config-google
npm ERR! extraneous: google-closure-compiler@20161201.0.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/google-closure-compiler
npm ERR! extraneous: gulp@3.9.1 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/gulp
npm ERR! extraneous: gulp-concat@2.6.1 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/gulp-concat
npm ERR! extraneous: gulp-declare@0.3.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/gulp-declare
npm ERR! extraneous: gulp-define-module@0.1.5 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/gulp-define-module
npm ERR! extraneous: gulp-handlebars@4.0.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/gulp-handlebars
npm ERR! extraneous: gulp-replace@0.5.4 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/gulp-replace
npm ERR! extraneous: istanbul@0.4.5 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/istanbul
npm ERR! extraneous: jsdom@9.12.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/jsdom
npm ERR! extraneous: mocha@3.2.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/mocha
npm ERR! extraneous: zone.js@0.7.3 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/lighthouse/node_modules/zone.js
npm ERR! extraneous: ava@0.14.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/speedline/node_modules/ava
npm ERR! extraneous: fs-promise@0.5.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/speedline/node_modules/fs-promise
npm ERR! extraneous: jimp@0.2.27 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/speedline/node_modules/jimp
npm ERR! extraneous: node-pre-gyp@0.6.34 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/speedline/node_modules/node-pre-gyp
npm ERR! extraneous: sobel@0.0.7 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/speedline/node_modules/sobel
npm ERR! extraneous: xo@0.14.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/speedline/node_modules/xo
npm ERR! extraneous: ava@0.18.2 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/xo/node_modules/ava
npm ERR! extraneous: babel-eslint@7.1.1 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/xo/node_modules/babel-eslint
npm ERR! extraneous: coveralls@2.11.16 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/xo/node_modules/coveralls
npm ERR! extraneous: eslint-config-xo-react@0.10.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/xo/node_modules/eslint-config-xo-react
npm ERR! extraneous: eslint-import-resolver-webpack@0.8.1 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/xo/node_modules/eslint-import-resolver-webpack
npm ERR! extraneous: eslint-plugin-react@6.10.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/xo/node_modules/eslint-plugin-react
npm ERR! extraneous: nyc@8.4.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/xo/node_modules/nyc
npm ERR! extraneous: proxyquire@1.7.11 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/xo/node_modules/proxyquire
npm ERR! extraneous: temp-write@2.1.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/xo/node_modules/temp-write
npm ERR! extraneous: xo@0.16.0 /Users/phulce/.nvm/versions/node/v7.2.1/lib/node_modules/xo/node_modules/xo
Seemingly errors
```sh
nvm_npm_global_modules
No .nvmrc file found
Node Version Manager Note: refers to any version-like string nvm understands. This includes:
Any options that produce colorized output should respect the Usage: Example: Note: ////
|
whoops, my bad. @patrickhulce can you run |
that makes more sense :) looks like those are expecting to be space delimited? bower@1.8.0 diff-so-fancy@0.11.4 google-closure-compiler-js@20170124.0.0 gulp@3.9.1 http-server@0.9.0 imagemin-cli@3.0.0 mocha@3.2.0 prettier@0.22.0 semantic-release-cli@3.0.3 typescript@2.2.1 webpack@1.14.0 webpack-dev-server@1.16.2 yarn@0.20.3 yo@1.8.5 //// /Users/phulce/Code/OpenSource/lint
/Users/phulce/Code/OpenSource/generator-npm-package
/Users/phulce/Code/Chrome/lighthouse
/Users/phulce/Code/OpenSource/speedline
/Users/phulce/Code/OpenSource/xo |
actually that output looks correct (the first half is space-delimited, the last half is newline-delimited) However, I'm wondering if your IFS setting caused the same issue. What happens if you set IFS to the default ( |
Oh I should've clarified above that 2nd run was with IFS explicitly set back to default, I get identical results when unsetting it entirely |
I see that you're on zsh; any chance it's oh-my-zsh, or that you have some nondefault options set? zsh options often break nvm; if that's the case, what's the output of your |
Ah ok, yes it's oh-my-zsh.
|
The options that I don't have set on my stock alwaystoend
autocd
autopushd
completeinword
extendedhistory
noflowcontrol
histexpiredupsfirst
histignoredups
histignorespace
histverify
incappendhistory
interactivecomments
login
longlistjobs
promptsubst
pushdignoredups
pushdminus
sharehistory The best way to figure this out quickly is for you to do a binary search - in other words, unset half of them, try again, then go back to only having half the failing half set, try again, etc, until we've narrowed it down. Once that's done, I can fix it by wrapping the command in "unset the opt, do the command, restore the opt". |
Alright I'll give that a shot later this week, it became considerably less urgent once the regular globals were brought over :) thanks for the help! |
Thanks, no hurry, but it's exceedingly hard to reproduce issues like this, so it'd be very very helpful for you to help me narrow it down to a single option :-) |
I also got Then I run But after So maybe you can run |
Operating system and version: macOS Sierra 10.12.4
nvm debug
output:nvm ls
output:nvm
? (e.g. install script in readme, homebrew):homebrew
Ran
nvm install v7.9.0 --reinstall-packages-from=v7.2.1
Saw errors in the console and no globally installed packages were reinstalled (
yarn
for example).No errors printed to console and globally installed packages from my previous version are available in the new installation (re-linking local packages that are
npm link
'd would be a nice bonus but I did not expect it :) ).bashrc
,.bash_profile
,.zshrc
, etc) that modifies thePATH
?Yes before the
nvm.sh
eval I add a few localThe text was updated successfully, but these errors were encountered: