File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/server/typingsInstaller Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ namespace ts.server.typingsInstaller {
102
102
if ( this . log . isEnabled ( ) ) {
103
103
this . log . writeLine ( `Updating ${ TypesRegistryPackageName } npm package...` ) ;
104
104
}
105
- this . execSync ( `${ this . npmPath } install ${ TypesRegistryPackageName } ` , { cwd : globalTypingsCacheLocation , stdio : "ignore" } ) ;
105
+ this . execSync ( `${ this . npmPath } install --ignore-scripts ${ TypesRegistryPackageName } ` , { cwd : globalTypingsCacheLocation , stdio : "ignore" } ) ;
106
106
if ( this . log . isEnabled ( ) ) {
107
107
this . log . writeLine ( `Updated ${ TypesRegistryPackageName } npm package` ) ;
108
108
}
@@ -152,7 +152,7 @@ namespace ts.server.typingsInstaller {
152
152
if ( this . log . isEnabled ( ) ) {
153
153
this . log . writeLine ( `#${ requestId } with arguments'${ JSON . stringify ( args ) } '.` ) ;
154
154
}
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 } "` ;
156
156
const start = Date . now ( ) ;
157
157
let stdout : Buffer ;
158
158
let stderr : Buffer ;
You can’t perform that action at this time.
0 commit comments