npm install 一直失败,出现以下:

npm WARN tar ENOENT: no such file or directory, lstat '/demo/node_modules/.staging/stylelint-f14e63b6/lib/rules/declaration-property-unit-blacklist'

npm WARN tar ENOENT: no such file or directory, open '/demo/node_modules/.staging/rxjs-efbcc9d2/observable/ForkJoinObservable.js'

npm WARN tar ENOENT: no such file or directory, open '/demo/node_modules/.staging/typeorm-865b4e7c/browser/connection/ConnectionMetadataBuilder.d.ts'

解决办法:

1:删除package-lock.josn

2:npm install

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐