if you have installed spm, it maybe you haven't set a NODE_PATH environment variable
解答:
no
need to reinstall Node!!
two ways to solve this;
1,don't use root user to install spm-build, use a non-root user and "sudo npm install spm-build -g"
2.chmod 775 /root/.spm -R