Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues on npm start from base project location #302

Open
sanj52 opened this issue Jun 12, 2023 · 7 comments
Open

Issues on npm start from base project location #302

sanj52 opened this issue Jun 12, 2023 · 7 comments

Comments

@sanj52
Copy link

sanj52 commented Jun 12, 2023

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

@denysoblohin-okta
Copy link
Contributor

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

@sanj52
Copy link
Author

sanj52 commented Jun 14, 2023

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

@shuowu-okta
Copy link
Contributor

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

@sanj52
Copy link
Author

sanj52 commented Jun 14, 2023

Yep I did but no luck!!!

@denysoblohin-okta
Copy link
Contributor

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

@sanj52
Copy link
Author

sanj52 commented Jun 15, 2023

Same issue and error as well.

@denysoblohin-okta
Copy link
Contributor

Internal ref: OKTA-620750

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants