npm WARN tar ENOENT: no such file or directory, open node_modules/.staging/core-js-0af08198/stage/RE
Posted vieber
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm WARN tar ENOENT: no such file or directory, open node_modules/.staging/core-js-0af08198/stage/RE相关的知识,希望对你有一定的参考价值。
报错信息
npm WARN tar ENOENT: no such file or directory, open node_modules/.staging/core-js-0af08198/stage/README.md'
解决方法
一开始搜索,按照这上面说的方法https://stackoverflow.com/questions/56171437/npm-warn-tar-enoent-no-such-file-or-directory-node-modules-staging-typescript-8/57117219都不行,删除了package-lock.json和node_modules,重新安装都不行,原来是因为我用的v14.19.3版本,直到我切换为v12.22.12版本之后重新安装就好了。
为什么我想到用v12.22.12呢,因为我们线上就用这个版本,一直跑的都没问题。
以上是关于npm WARN tar ENOENT: no such file or directory, open node_modules/.staging/core-js-0af08198/stage/RE的主要内容,如果未能解决你的问题,请参考以下文章
npm WARN enoent ENOENT: no such file or directory, open 'C:Userspackage.json'
npm安装socket.io时报错的解决方法(npm WARN enoent ENOENT: no such file or directory, open '/usr/local/nodej
Error:npm WARN enoent ENOENT: no such file or directory, open ‘C:UsersXXpackage.json‘son‘
创建react工程报错:npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not
npm ERR! code ENOENT npm ERR! syscall open npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file
npm install报错 npm ERR! enoent ENOENT: no such file or directory