File tree Expand file tree Collapse file tree
src/server/typingsInstaller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ namespace ts.server.typingsInstaller {
102102 if ( this . log . isEnabled ( ) ) {
103103 this . log . writeLine ( `Updating ${ TypesRegistryPackageName } npm package...` ) ;
104104 }
105- this . execSync ( `${ this . npmPath } install ${ TypesRegistryPackageName } ` , { cwd : globalTypingsCacheLocation , stdio : "ignore" } ) ;
105+ this . execSync ( `${ this . npmPath } install --ignore-scripts ${ TypesRegistryPackageName } ` , { cwd : globalTypingsCacheLocation , stdio : "ignore" } ) ;
106106 if ( this . log . isEnabled ( ) ) {
107107 this . log . writeLine ( `Updated ${ TypesRegistryPackageName } npm package` ) ;
108108 }
@@ -152,7 +152,7 @@ namespace ts.server.typingsInstaller {
152152 if ( this . log . isEnabled ( ) ) {
153153 this . log . writeLine ( `#${ requestId } with arguments'${ JSON . stringify ( args ) } '.` ) ;
154154 }
155- const command = `${ this . npmPath } install ${ args . join ( " " ) } --save-dev --user-agent="typesInstaller/${ version } "` ;
155+ const command = `${ this . npmPath } install --ignore-scripts ${ args . join ( " " ) } --save-dev --user-agent="typesInstaller/${ version } "` ;
156156 const start = Date . now ( ) ;
157157 let stdout : Buffer ;
158158 let stderr : Buffer ;
You can’t perform that action at this time.
0 commit comments