首先先安装nodecurl -sL https://deb.nodesource.com/setup_10.x | bash -
然后apt-get -y update
安装nodejsapt-get -y install nodejs
如果出现这个报错
执行 apt-get install binutils
最后 apt-get -y install npm
安装完npm之后就可以安装 sourcemap了npm install --gobal reverse-sourcemap