Fixed npm bugs.