1、idea中执行运行smpp的js文件时提示smpp module not found:需要安装smpp
2、安装后报错提示npm ERR! code 1:node.js版本太高,用Index of /dist/v14.16.1/(参考gulp - How to solve npm install error “npm ERR! code 1” - Stack Overflow)
3、降低版本后重新安装,又报错npm ERR! code ENOSELF npm ERR! Refusing to install package with name "smpp" under a package npm ERR! also called "smpp".:打开package.json把name换一个名字(参考npm ERR code ENOSELF npm ERR Refusing to install package with name package under a package_동경的博客-CSDN博客)
4、换好后再重新安装,又报错ENOENT rename……:执行rm package-lock.json 和 npm i,按命令的提示执行fix install等等的命令,最后不知道怎么回事,再重新安装smpp,竟然可以了(参考npm install - NPM: ENOENT: no such file or directory, rename - Stack Overflow)