This is probably not a problem with npm. There is likely additional logging output above 这个错误是因为删掉某个类后 他的引用未删除 全局搜索删掉它即可