C:\Users\you name>npm cache cleannpm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On
当出现这个问题时npm ERR! Unexpected end of JSON input while parsing near '...,"dist":{"shasum":"b3' 使用 npm cache clean --force解决 存中之前已经备份的模块实现离线模块安装的的 cache 机制已经在V5的时候重写了
C:\Users\you name>npm cache cleannpm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On
from rest_framework.authentication import BaseAuthentication from rest_framework.exceptions import AuthenticationFailed from api.models import Token import datetime from django.core.cache import cache import pytz class LoginAuth(BaseAuthentication):