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

npm install -g appium fails for 1.6.1, 1.6.2, 1.6.3 #7525

Closed
magleahy opened this issue Dec 13, 2016 · 9 comments
Closed

npm install -g appium fails for 1.6.1, 1.6.2, 1.6.3 #7525

magleahy opened this issue Dec 13, 2016 · 9 comments

Comments

@magleahy
Copy link

magleahy commented Dec 13, 2016

npm install -g appium fails for 1.6.1, 1.6.2, 1.6.3

Please see npm/npm#15210 for more details.
You mentioned shrinkwrap as a reason for 1.6.3 and this was mentioned in the npm debug log:

30098 silly cleanup remove extracted module
30099 verbose stack TypeError: Cannot read property 'deep-extend' of undefined
30099 verbose stack at /usr/local/lib/node_modules/npm/lib/install/inflate-shrinkwrap.js:35:40
30099 verbose stack at Array.filter (native)
30099 verbose stack at inflateShrinkwrap (/usr/local/lib/node_modules/npm/lib/install/inflate-shrinkwrap.js:34:49)
30099 verbose stack at /usr/local/lib/node_modules/npm/lib/install/inflate-shrinkwrap.js:55:16
30099 verbose stack at /usr/local/lib/node_modules/npm/node_modules/iferr/index.js:13:50
30099 verbose stack at zalgoSafe (/usr/local/lib/node_modules/npm/node_modules/dezalgo/dezalgo.js:20:10)
30099 verbose stack at finalize (/usr/local/lib/node_modules/npm/node_modules/realize-package-specifier/index.js:39:5)
30099 verbose stack at /usr/local/lib/node_modules/npm/node_modules/realize-package-specifier/index.js:22:20
30099 verbose stack at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:276:29
30099 verbose stack at FSReqWrap.oncomplete (fs.js:111:15)
30100 verbose cwd /Users/magleahy/Desktop/projects/client/App
30101 error Darwin 16.0.0
30102 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "appium@1.6.3"
30103 error node v7.2.0
30104 error npm v4.0.3
30105 error Cannot read property 'deep-extend' of undefined
30106 error If you need help, you may report this error at:
30106 error https://github.com/npm/npm/issues
30107 verbose exit [ 1, true ]

Environment

  • Appium version (or git revision) that exhibits the issue:
  • Last Appium version that did not exhibit the issue (if applicable): 1.6.0-beta3
  • Desktop OS/version used to run Appium: MacOS Sierra
  • Node.js version (unless using Appium.app|exe): See npm ticket linked above
@triager triager added the Needs Triage bugs which are not yet confirmed label Dec 13, 2016
@jlipps
Copy link
Member

jlipps commented Dec 13, 2016

This is an npm bug, please try the following:

npm uninstall -g appium
npm install -g npm@4.0.5
npm install -g appium

@magleahy
Copy link
Author

You are an impressive responder @jlipps!

I did this and can confirm that npm@4.0.5 works for 1.6.3.

Hopefully npm will follow up on their ticket which is npm/npm#15210.

Many thanks. :)

@jlipps
Copy link
Member

jlipps commented Dec 13, 2016

You're welcome! You got lucky because I ran into this myself yesterday and had to figure out that there was a new version of npm which fixed it :-)

@jlipps jlipps closed this as completed Dec 13, 2016
@magleahy
Copy link
Author

The luck of the Irish!

@jlipps
Copy link
Member

jlipps commented Dec 13, 2016

🍀

@zkat
Copy link

zkat commented Dec 15, 2016

🌊 hey y'all. Just popping in to link npm/npm#15082 as the root-cause fix for this issue. 👍

@magleahy
Copy link
Author

Great work @jlipps and @zkat - awesomeness!

@imurchie imurchie removed the Needs Triage bugs which are not yet confirmed label Apr 13, 2017
@skhanam
Copy link

skhanam commented May 20, 2017

Hi there,

I am upgrading from appium version 1.4.X to 1.6.3

npm uninstall -g appium
npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "uninstall" "-g" "appium"
npm ERR! node v7.10.0
npm ERR! npm v4.2.0
npm ERR! code MODULE_NOT_FOUND

npm ERR! Cannot find module 'internal/fs'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:

Is this issue relating to npm or appium ?

@lock
Copy link

lock bot commented Apr 27, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Apr 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants