samples-js-react icon indicating copy to clipboard operation
samples-js-react copied to clipboard

Issues on npm start from base project location

Open sanj52 opened this issue 2 years ago • 7 comments

I am facing below error on cmd npm start so am i missing something or the npm version needs to be different. As for now I am using npm version 9.5.1. The error are: PS D:\NOW_OR_NEVER\REACT\ReactWorkspace\samples-js-react-master> npm install

@okta/[email protected] postinstall npm install --prefix custom-login && npm install --prefix okta-hosted-login

npm ERR! code 1 npm ERR! path D:\NOW_OR_NEVER\REACT\ReactWorkspace\samples-js-react-master npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c npm install --prefix custom-login && npm install --prefix okta-hosted-login
npm ERR! npm ERR! code 1 npm ERR! npm ERR! path D:\NOW_OR_NEVER\REACT\ReactWorkspace\samples-js-react-master npm ERR! npm ERR! command failed

sanj52 avatar Jun 12 '23 17:06 sanj52

What is your Windows version? Have you tried to install project on Linux Bash Shell for Windows or Cygwin?

denysoblohin-okta avatar Jun 14 '23 15:06 denysoblohin-okta

I am in windows 10 and tried running in git bash as well with nom install command in base project but got same issues.

sanj52 avatar Jun 14 '23 15:06 sanj52

@sanj52 Have you tried run script separately, I believe && should be the cause. Meanwhile, we will update the script to support Windows platform.

shuowu-okta avatar Jun 14 '23 17:06 shuowu-okta

Yep I did but no luck!!!

sanj52 avatar Jun 14 '23 17:06 sanj52

Could you post npm error log? What errors do you get on running npm install --prefix custom-login?

As a workaround you can try:

cd custom-login
npm install --force
cd ..
cd okta-hosted-login
npm install --force
cd ..
npm start

denysoblohin-okta avatar Jun 14 '23 18:06 denysoblohin-okta

Same issue and error as well.

sanj52 avatar Jun 15 '23 01:06 sanj52

Internal ref: OKTA-620750

denysoblohin-okta avatar Jun 21 '23 11:06 denysoblohin-okta