Why is the npm run build command failing?

286    Asked by dipesh_9001 in Salesforce , Asked on May 8, 2023
I am trying to build the quip gdrive live app example from quip. Following the quip liveapps instructions https://quip.com/dev/liveapps/1.x.x/guide/getting-started/ and when I run the npm run build command I get an error "NODE_ENV" is not recognized as an internal or external command, operable program or batch file.
I am running Windows 10, Python 3.9 installed Node.js 14.16.1 from the website link in https://quip.com/dev/liveapps/1.x.x/guide/getting-started/ .

Can anyone point me in the right direction to resolving this?

Answered by Dipesh Bhardwaj
  Npm run build command is failing because windows still has some tweaks necessary, if you look in package.json in the scripts field you'll see the run command, which probably looks something like NODE_ENV=development webpack - you can just remove the NODE_ENV=development part since windows doesn't allow assigning environment variables that way.


Your Answer

Interviews

Parent Categories