NPM 相关问题集锦

vue ⋅ tytrock ⋅ at 2020-08-19 21:27:33 ⋅ 3915 Reads

1、npm install报错类似于npm WARN tar ENOENT: no such file or directory, open '***\node_modules\.staging\***

解决方法:

删除文件 package-lock.json,再重新执行npm install



2、npm install报错A complete log of this run can be found in:****debug.log

这种情况下一般更新npm就可以   

1)npm install npm -g   必须要全局更新

如果还是不行执行下面命令

2)npm cache clean --force


Total Reply Count: 0
    No comments~~
    • publish_typography
    • publish_markdown
    • 支持表情,使用方法请见 Emoji 自动补全来咯,可用的 Emoji 请见 :metal: :point_right: Emoji 列表 :star: :sparkles:
    • publish_image
    • publish_draft
    Ctrl+Enter