- Newest
- Most votes
- Most comments
I fixed it by redeploying the CDK pipeline itself,
I was adding the cd mysubDir and pushing, and the pipeline ran upon push but doesn't seem to take into account my modif (cd mySubDir)
so I redeployed the CDK pipeline and it works, now the command cd mySubDir is executed.
Thank you
Have you generated and committed your package.json
file already? If that is not present, the npm ci
command cannot run.
Hello,
The code ENOENT means that npm fails to open a file or directory that’s required for executing the command.
I believe that mostly the package.json file is not committed to the CodeCommit Repo and now when CodeBuild Runs, it is not able to find the file.
One thing you can do is check your .gitignore file for package.json. Please note that if package.json is present in the .gitignore file then it will be ignored during the commit. So please remove package.json from the gitignore file if you find it.
If this doesn’t help then, please feel free to refer these third party links for more information:
[+] https://sebhastian.com/npm-err-enoent/
[+] https://www.codejourney.net/how-to-fix-npm-err-enoent-enoent-no-such-file-or-directory-rename/
[+] https://community.n8n.io/t/npm-not-able-to-find-file/2859
[+] https://you.com/search?q=this%20is%20related%20to%20npm%20not%20being%20able%20to%20find%20a%20file
Relevant content
- asked 7 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago