Error: ELOOP: too many symbolic links?


#1

Tried to update from 1.3.2.4 to current version

Mac OSX
Current 1.3.2.4

$ meteor npm install
/Users/minminsanjose/.meteor/packages/meteor-tool/.1.4.0.v4jnbt++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/cli/dev-bundle.js:113
      throw e;
      ^

Error: ELOOP: too many symbolic links encountered, stat '/Users/minminsanjose/.meteor/.meteor/package-metadata'
    at Error (native)
    at Object.fs.statSync (fs.js:844:18)
    at statOrNull (/Users/minminsanjose/.meteor/packages/meteor-tool/.1.4.0.v4jnbt++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/cli/dev-bundle.js:110:19)
    at /Users/minminsanjose/.meteor/packages/meteor-tool/.1.4.0.v4jnbt++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/cli/dev-bundle.js:151:12
    at find (/Users/minminsanjose/.meteor/packages/meteor-tool/.1.4.0.v4jnbt++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/cli/dev-bundle.js:137:9)
    at getDevBundleForRelease (/Users/minminsanjose/.meteor/packages/meteor-tool/.1.4.0.v4jnbt++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/cli/dev-bundle.js:63:28)
    at getDevBundleDir (/Users/minminsanjose/.meteor/packages/meteor-tool/.1.4.0.v4jnbt++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/cli/dev-bundle.js:44:10)
    at Object.<anonymous> (/Users/minminsanjose/.meteor/packages/meteor-tool/.1.4.0.v4jnbt++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/cli/dev-bundle.js:172:18)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
minminsanjose (master *) spark2acs $ meteor update
=> Errors while initializing project:                                              
                                              
While loading package fourseven:scss@3.3.3_3:
error: Command failed: /Users/minminsanjose/.meteor/packages/meteor-tool/.1.4.0.v4jnbt++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm rebuild --no-bin-links --update-binary
module.js:327
throw err;
^

Error: Cannot find module '../'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous>
(/Users/minminsanjose/.meteor/packages/fourseven_scss/.3.3.3_3.azn3ui++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/compileScssBatch/compileScssBatch/node_modules/.temp-fpwtxv/node_modules/node-sass/node_modules/cross-spawn/node_modules/spawn-sync/node_modules/try-thread-sleep/node_modules/thread-sleep/node_modules/.bin/node-pre-gyp:15:20)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)

npm ERR! Darwin 15.5.0
npm ERR! argv "/Users/minminsanjose/.meteor/packages/meteor-tool/.1.4.0.v4jnbt++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/minminsanjose/.meteor/packages/meteor-tool/.1.4.0.v4jnbt++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm" "rebuild" "--no-bin-links" "--update-binary"
npm ERR! node v4.4.7
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! thread-sleep@1.0.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the thread-sleep@1.0.4 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the thread-sleep package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs thread-sleep
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls thread-sleep
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/minminsanjose/.meteor/packages/fourseven_scss/.3.3.3_3.azn3ui++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/compileScssBatch/compileScssBatch/node_modules/.temp-fpwtxv/npm-debug.log
module.js:327
throw err;
^

Error: Cannot find module '../'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous>
(/Users/minminsanjose/.meteor/packages/fourseven_scss/.3.3.3_3.azn3ui++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/compileScssBatch/compileScssBatch/node_modules/.temp-fpwtxv/node_modules/node-sass/node_modules/cross-spawn/node_modules/spawn-sync/node_modules/try-thread-sleep/node_modules/thread-sleep/node_modules/.bin/node-pre-gyp:15:20)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)

npm ERR! Darwin 15.5.0
npm ERR! argv "/Users/minminsanjose/.meteor/packages/meteor-tool/.1.4.0.v4jnbt++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/minminsanjose/.meteor/packages/meteor-tool/.1.4.0.v4jnbt++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm" "rebuild" "--no-bin-links" "--update-binary"
npm ERR! node v4.4.7
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! thread-sleep@1.0.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the thread-sleep@1.0.4 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the thread-sleep package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs thread-sleep
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls thread-sleep
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/minminsanjose/.meteor/packages/fourseven_scss/.3.3.3_3.azn3ui++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/compileScssBatch/compileScssBatch/node_modules/.temp-fpwtxv/npm-debug.log

#2

I have similar issue, I don’t know the reason yet. The way I solve the problem simple clean up package.json (it might cause by some unnecessary packages)