diff --git a/scripts/aot.sh b/scripts/aot.sh
index 6a629cb74..931d8e4b5 100755
--- a/scripts/aot.sh
+++ b/scripts/aot.sh
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-# List the installed libraries so we can check everything is fine.
-npm list
+# List first level of installed libraries so we can check the installed versions.
+npm list --depth=0
 
 # Compile AOT.
 if [ $TRAVIS_BRANCH == 'integration' ] || [ $TRAVIS_BRANCH == 'master' ] || [ $TRAVIS_BRANCH == 'desktop' ] || [ -z $TRAVIS_BRANCH ] ; then