Fixed npm deprecation errors