title: Error installing npm package on Azure app service deploy
body: <p>I'm trying to deploy my reactjs project on Azure app service but when I started the deploy I get the follow log error on npm install part and the deploy failed</p>
  <p>My node version is 16.13.2</p>
  <p>I followed these steps:</p>
  <blockquote>
  <p>1- Run npm run build</p>
  </blockquote>
  <blockquote>
  <p>2- Deploy to the main branch</p>
  </blockquote>
  <blockquote>
  <p>3- Deploy started automaticaly to Azure app service</p>
  </blockquote>
  <blockquote>
  <p>4- Got the Erro:</p>
  </blockquote>
  <pre><code>Updating iisnode.yml at C:\home\site\wwwroot\iisnode.yml
  Invalid start-up command &quot;react-scripts start&quot; in package.json. Please use the format &quot;node &lt;script relative path&gt;&quot;.
  Missing server.js/app.js files, web.config is not generated
  npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
  npm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
  npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
  npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
  npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
  npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
  npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
  npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
  npm ERR! code 8
  npm ERR! path C:\home\site\wwwroot\node_modules\@progress\kendo-licensing
  npm ERR! command failed
  npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node ./bin/kendo-ui-license.js activate --ignore-no-license
  npm ERR! C:\home\site\wwwroot\node_modules\@progress\kendo-licensing\bin\kendo-ui-license.js:2
  npm ERR! amespace[_0x4d18('0x4c')](licenseFile,fs__namespace[_0x4d18('0x11')][_0x4d18('
  npm ERR!                                                                     ^
  npm ERR! TypeError: Cannot read property 'R_OK' of undefined
  npm ERR!     at activateLicense (C:\home\site\wwwroot\node_modules\@progress\kendo-licensing\bin\kendo-ui-license.js:2:8834)
  npm ERR!     at Object.&lt;anonymous&gt; (C:\home\site\wwwroot\node_modules\@progress\kendo-licensing\bin\kendo-ui-license.js:2:7890)
  npm ERR!     at Module._compile (module.js:456:26)
  npm ERR!     at Object.Module._extensions..js (module.js:474:10)
  npm ERR!     at Module.load (module.js:356:32)
  npm ERR!     at Function.Module._load (module.js:312:12)
  npm ERR!     at Function.Module.runMain (module.js:497:10)
  Failed exitCode=8, command=&quot;C:\Program Files (x86)\nodejs\16.13.0\node.exe&quot; &quot;C:\Program Files (x86)\npm\8.1.0\node_modules\npm\bin\npm-cli.js&quot; install --production
  npm ERR!     at startup (node.js:119:16)
  An error has occurred during web site deployment.
  npm ERR!     at node.js:935:3
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\local\LocalAppData\npm-cache\_logs\2022-03-05T13_14_13_352Z-debug.log
  Invalid start-up command &quot;react-scripts start&quot; in package.json. Please use the format &quot;node &lt;script relative path&gt;&quot;.\r\nMissing server.js/app.js files, web.config is not generated\r\nnpm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated\r\nnpm WARN deprecated source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated\r\nnpm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated\r\nnpm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies\r\nnpm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated\r\nnpm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated\r\nnpm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.\r\nnpm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.\r\nnpm ERR! code 8\r\nnpm ERR! path C:\home\site\wwwroot\node_modules\@progress\kendo-licensing\r\nnpm ERR! command failed\r\nnpm ERR! command C:\Windows\system32\cmd.exe /d /s /c node ./bin/kendo-ui-license.js activate --ignore-no-license\r\nnpm ERR! C:\home\site\wwwroot\node_modules\@progress\kendo-licensing\bin\kendo-ui-license.js:2\r\nnpm ERR! amespace[_0x4d18('0x4c')](licenseFile,fs__namespace[_0x4d18('0x11')][_0x4d18('\r\nnpm ERR!                                                                     ^\r\nnpm ERR! TypeError: Cannot read property 'R_OK' of undefined\r\nnpm ERR!     at activateLicense (C:\home\site\wwwroot\node_modules\@progress\kendo-licensing\bin\kendo-ui-license.js:2:8834)\r\nnpm ERR!     at Object.&lt;anonymous&gt; (C:\home\site\wwwroot\node_modules\@progress\kendo-licensing\bin\kendo-ui-license.js:2:7890)\r\nnpm ERR!     at Module._compile (module.js:456:26)\r\nnpm ERR!     at Object.Module._extensions..js (module.js:474:10)\r\nnpm ERR!     at Module.load (module.js:356:32)\r\nnpm ERR!     at Function.Module._load (module.js:312:12)\r\nnpm ERR!     at Function.Module.runMain (module.js:497:10)\r\nnpm ERR!     at startup (node.js:119:16)\r\nnpm ERR!     at node.js:935:3\r\n\r\nnpm ERR! A complete log of this run can be found in:\r\nnpm ERR!     C:\local\LocalAppData\npm-cache\_logs\2022-03-05T13_14_13_352Z-debug.log\r\nC:\Program Files (x86)\SiteExtensions\Kudu\96.40113.5578\bin\Scripts\starter.cmd &quot;C:\home\site\deployments\tools\deploy.cmd&quot;
  </code></pre>
  <p>Here is my package.json:</p>
  <pre><code>{
    &quot;name&quot;: &quot;&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@progress/kendo-data-query&quot;: &quot;^1.5.5&quot;,
      &quot;@progress/kendo-drawing&quot;: &quot;^1.16.2&quot;,
      &quot;@progress/kendo-licensing&quot;: &quot;^1.2.2&quot;,
      &quot;@progress/kendo-react-animation&quot;: &quot;^5.0.1&quot;,
      &quot;@progress/kendo-react-data-tools&quot;: &quot;^5.0.1&quot;,
      &quot;@progress/kendo-react-dateinputs&quot;: &quot;^5.0.1&quot;,
      &quot;@progress/kendo-react-dropdowns&quot;: &quot;^5.0.1&quot;,
      &quot;@progress/kendo-react-grid&quot;: &quot;^5.0.1&quot;,
      &quot;@progress/kendo-react-inputs&quot;: &quot;^5.0.1&quot;,
      &quot;@progress/kendo-react-intl&quot;: &quot;^5.0.1&quot;,
      &quot;@progress/kendo-react-treeview&quot;: &quot;^5.0.1&quot;,
      &quot;@testing-library/jest-dom&quot;: &quot;^5.14.1&quot;,
      &quot;@testing-library/react&quot;: &quot;^12.0.0&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^13.2.1&quot;,
      &quot;@types/jest&quot;: &quot;^27.0.1&quot;,
      &quot;@types/node&quot;: &quot;^16.7.13&quot;,
      &quot;@types/react-dom&quot;: &quot;^17.0.9&quot;,
      &quot;axios&quot;: &quot;^0.25.0&quot;,
      &quot;miragejs&quot;: &quot;^0.1.43&quot;,
      &quot;react&quot;: &quot;^17.0.2&quot;,
      &quot;react-dom&quot;: &quot;^17.0.2&quot;,
      &quot;react-icons&quot;: &quot;^4.3.1&quot;,
      &quot;react-input-mask&quot;: &quot;^2.0.4&quot;,
      &quot;react-router-dom&quot;: &quot;^6.2.1&quot;,
      &quot;react-scripts&quot;: &quot;5.0.0&quot;,
      &quot;styled-components&quot;: &quot;^5.3.3&quot;,
      &quot;typescript&quot;: &quot;^4.4.2&quot;,
      &quot;web-vitals&quot;: &quot;^2.1.0&quot;,
      &quot;webpack-cli&quot;: &quot;3.1.1&quot;
    },
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;react-scripts start&quot;,
      &quot;build&quot;: &quot;react-scripts build&quot;,
      &quot;test&quot;: &quot;react-scripts test&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;extends&quot;: [
        &quot;react-app&quot;,
        &quot;react-app/jest&quot;
      ]
    },
    &quot;browserslist&quot;: {
      &quot;production&quot;: [
        &quot;&gt;0.2%&quot;,
        &quot;not dead&quot;,
        &quot;not op_mini all&quot;
      ],
      &quot;development&quot;: [
        &quot;last 1 chrome version&quot;,
        &quot;last 1 firefox version&quot;,
        &quot;last 1 safari version&quot;
      ]
    },
    &quot;devDependencies&quot;: {
      &quot;@types/react&quot;: &quot;^17.0.39&quot;,
      &quot;@types/styled-components&quot;: &quot;^5.1.19&quot;,
      &quot;@types/uuid&quot;: &quot;^8.3.4&quot;
    },
    &quot;engines&quot;: {
      &quot;node&quot;: &quot;&gt;8.0.0&quot;
    }
  }
  </code></pre>