lib/npm.js
function uninstalledVer(name, ver, dir) {
        var _child$spawnSync4 = _child_process2['default'].spawnSync(npmCommand, ['uninstall', ver.length === 0 ? name : name + '@' + ver], { cwd: dir });

        var error = _child$spawnSync4.error;

        if (error) throw error;
    }
function uninstalledVer(name, ver, dir) {
        var _child$spawnSync4 = _child_process2['default'].spawnSync(npmCommand, ['uninstall', ver.length === 0 ? name : name + '@' + ver], { cwd: dir });

        var error = _child$spawnSync4.error;

        if (error) throw error;
    }
function uninstalledVer ( name , ver , dir ) { var _child$spawnSync4 = _child_process2 [ 'default' ] . spawnSync ( npmCommand , [ 'uninstall' , ver . length === 0 ? name : name + '@' + ver ] , { cwd : dir } ) ; var error = _child$spawnSync4 . error ; if ( error ) throw error ; }
uninstall package via npm

@param {String} [name] published package name
@param {String} [ver] install version
@param {String} [dir] uninstall directory
@public
uninstall package via npm