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.json
2.重新npm install
出现相关问题是依赖包版本不对
解决办法:
想不到,我选择把项目拉入新创建的项目中运行,将sass重新下载适合的