npm / cli

the package manager for JavaScript
https://docs.npmjs.com/cli/
Other
8.49k stars 3.17k forks source link

Not workig "npm install" after Big Sur upgrade. #2363

Closed dominikj111 closed 3 years ago

dominikj111 commented 3 years ago

Current Behavior:

Whenever I'll npm install it end with the message Maximum call stack size exceeded.

Expected Behavior:

It will finish as usual.

Steps To Reproduce:

Not sure as I'm only one in the team as far as I know.

Environment:

ProductName: macOS ProductVersion: 11.0.1 Darwin: 20.1.0 nodejs: v14.15.1 npm: v6.14.8

The problem is with any possible installation of node/npm except version npm v7.

Also whenever I ran npm install in the docker environment (ubuntu:focal) or virtualbox (Windows 10), it failed in case that this command was running upon shared folder. When I copied the project folder "into" the virtual drive environment (not shared/not mapped from host to docker container) it passed.

I also described that issue in the stackoverflow.com.

I tried to build the npm from source on dockerized ubuntu:focal upon the mapped folder and got slightly different error.

npm install
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/is-data-descriptor-20290f75/LICENSE'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/is-data-descriptor-35860a58/package.json'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/lodash-1ec00b73/_baseAt.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/source-map-f96e5113/package.json'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/semver-7517f763/LICENSE'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/semver-00ae15ff/package.json'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/acorn-6842244f/dist/acorn.es.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/resolve-4e37911a/lib/sync.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/source-map-f96e5113/lib/util.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/es-abstract-a7dfdbe1/2018/YearFromTime.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/es-abstract-61d6d01f/2019/ToUint8.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/lodash-1ec00b73/_baseFlatten.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/immutability-helper-d6583f56/.history/index_20181206195730.ts'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/isobject-68c95c76/package.json'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/@babel/runtime-corejs3-8dd9d9d5/core-js/instance/fill.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/@babel/runtime-corejs3-8dd9d9d5/core-js/instance/filter.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/is-stream-fa6c4593/index.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/es-to-primitive-e2ba2070/es2015.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/resolve-4e37911a/test/resolver/symlinked/package/package.json'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/forwarded-1a21a70e/README.md'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/gzip-size-9431f231/index.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/get-caller-file-9f8d7ec2/README.md'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/har-schema-5b4e1d47/lib/creator.json'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/has-symbols-f60c257f/package.json'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/async-2b9f5fb2/reduce.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/ckeditor4-506adbb2/plugins/save/lang/tt.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/cssesc-533f746a/LICENSE-MIT.txt'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/ansi-styles-6fe0e2f6/index.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/d3-interpolate-8748a6cc/src/value.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/semver-d61dd2a8/functions/compare-loose.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/d3-collection-b792c3c1/.eslintrc.json'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/ckeditor4-506adbb2/lang/ug.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/jquery-c5dee85e/src/selector-native.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/core-js-d332cbdd/modules/_array-copy-within.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/jquery-c5dee85e/src/selector.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/fsevents-bd30461d/node_modules/minipass/LICENSE'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/@babel/runtime-corejs3-8dd9d9d5/helpers/classStaticPrivateMethodGet.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/semver-d61dd2a8/classes/index.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/normalize-path-671b9fff/LICENSE'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/@babel/runtime-corejs3-8dd9d9d5/helpers/construct.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/core-js-d332cbdd/library/modules/_array-from-iterable.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/semver-fafe7945/functions/parse.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/d3-scale-21bebbde/src/array.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/continuable-cache-a4767828/.testem.json'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/callsites-a9ae8165/index.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/buffer-xor-36acaebf/package.json'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/cssom-0a6a78e4/lib/MatcherList.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/camelcase-bc3758ee/license'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/@babel/runtime-corejs3-8dd9d9d5/helpers/createForOfIteratorHelperLoose.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/d3-scale-21bebbde/src/continuous.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/cssom-0a6a78e4/lib/MediaList.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/fsevents-bd30461d/node_modules/mkdirp/LICENSE'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/aria-query-2b75da6f/lib/etc/roles/literal/tooltipRole.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/primereact-bf40144e/resources/themes/nova-colored/fonts/open-sans-v15-latin-regular.eot'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/@babel/runtime-512d8bbb/helpers/typeof.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/semver-fafe7945/functions/rcompare.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/lodash-1ec00b73/_listCacheHas.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/ckeditor4-506adbb2/plugins/embedbase/lang/ug.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/core-js-d332cbdd/library/modules/_array-species-create.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/ckeditor4-506adbb2/plugins/liststyle/lang/ug.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/d3-scale-21bebbde/src/ordinal.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/bn.js-60dac7b1/package.json'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/lodash-1ec00b73/_matchesStrictComparable.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/d3-collection-b792c3c1/src/map.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/d3-format-2a1367c8/locale/ar-SS.json'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/debug-a7ac39fc/README.md'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/resolve-3b6e7204/lib/caller.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/d3-collection-b792c3c1/src/nest.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/d3-time-31b0d148/src/week.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/d3-format-2a1367c8/locale/ar-TN.json'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/cssstyle-548f5148/lib/properties/backgroundAttachment.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/cssstyle-548f5148/lib/properties/backgroundPosition.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/semver-d61dd2a8/ranges/valid.js'
npm WARN tar EIO: i/o error, open '/root/any3app/node_modules/.staging/ast-types-flow-50838410/lib/types.js'
npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://npm.community>

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-12-15T10_32_38_637Z-debug.log
root@173fc8077047:~/any3app#
Tomato6966 commented 3 years ago

Bot Hey Leute Checkt auf jeden Fall @Tomato ab und seine Coolen Bots

Server : https://discord.gg/3ep6e3vEJf

Website : https://x10-gaming.eu/service/dc

designervoid commented 3 years ago
sudo npm cache clean --force

this command helped me

dominikj111 commented 3 years ago

It doesn't work ... @designervoid I raised a question here also.

Flowkap commented 3 years ago

Same for us. I also commented on SO on the issue. For us its 100% reproducible. It works with npm7 and also with yarn. Also on all macs that previously to BigSur updates ran node + npm 6. All new macs broken though. (at least 3 colleges)

We cannot find any difference on the setup though. Also (as described on @domino2 SO post here https://stackoverflow.com/questions/65286917/cant-install-npm-packages-anymore-due-to-macos-big-sur-upgrade its not working inside a docker container either if on a mounted volume.

darcyclarke commented 3 years ago

npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.

If your bug is preproducible on v7, please re-file this issue using our new issue template.

If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo