Can't build atom from source on Linux


I’m on Manjaro Linux x64.
My node version is: v.8.10.0
My npm version is: 5.6.0
My node is installed using node version manager n

I’m trying to build atom from source.
I have

  1. clone the atom github repo
  2. installed the deps using this command: sudo pacman -S --needed gconf base-devel git libsecret python2 libx11 libxkbfile
  3. run npm config set python /usr/bin/python2 -g
  4. run export PYTHON=/usr/bin/python2
  5. run script/bootstrap unsuccessfully.
    I get this error file atom/apm/node_modules/atom-package-manager/npm-debug.log