Closed jTendeck closed 3 years ago
Try this:
dev-portal/deployer.config.js
to somewhere outside the repodev-portal/deployer.config.js
from that backupdev-portal
directory and run npm install
node run install
simply runs npm install
in each relevant package directory within the repo - it's not particularly magical.Once you do that, check if dev-portal/node_modules/react-router-dom
exists. If it does, you can navigate back to the root and just run node run install release
(the extra install
won't do much within dev-portal
as you already did that previously). If it doesn't, then I'd recommend asking either in https://github.community/c/software-development/47, https://github.com/npm/cli/issues, or https://stackoverflow.com/questions/tagged/npm as appropriate as it's a permissions issue caused by Git and/or npm and you'd have to sort out which one's causing it. (I couldn't reproduce it locally.)
Here's a couple related SO questions for additional reference:
The offending repo you're having issues with (https://github.com/awslabs/swagger-ui) is itself public, so that's not a concern.
Thanks for your response!
In the end I used a different version of npm - 6.14.8. Everything seems works as expected with that version.
Hi there! I am just trying to deploy the developer portal using method 3 (deploy using the development scripts) but I am running into an issue.
I was able to successfully follow all of the prerequisite steps and I have successfully deployed the portal to AWS. I start running into issues when following the steps outlined in the BUILDING.md file.
I start running into issues when I make it to step 5: Run
node run install release
.It appears the
install
phase mostly runs without a hitch, but I encounter an error when it enters thebuild
stage.Here is the error I see:
I should also mention before this happened, I also saw an error saying
Cannot find module: 'react-scripts'.
which I fixed by runningnpm i react-scripts
I tried running
npm i react-router-dom
which leads to acannot find module
for semantic-ui-css/semantic.css... when I try to install that I see:error code 128: command failed. ERROR: Repository not found. Fatal: Could not read from remote repository
.. and at this point I’m not sure what to do.To try and remedy this I tried a few things, like making sure Git/Node/AWS CLI/SAM CLI are all the latest version, deleting node_modules in both the project root directory and dev-portal directory and installing fresh dependencies using npm install, running
sudo node run install release
but nothing seems to work.Any advice on how to resolve this issue? I am not really sure where to go from here.
When running
node run install release
I also see the following error before it gets tocannot find module
errors mentioned above:I am running:
Let me know if you require any more information. Thanks for any help!