fix npm module install logic
remove a extra line
update
fix some spm-check logic