question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

initTriggerEnvs path issue, no such file or directory

See original GitHub issue

Describe the bug I am contributing to an existing Amplify project. I download the source code and run amplify init. In the process It asks if I want to create a Lambda. Regardless of my answer I get the error Error: ENOENT: no such file or directory, open referring to .nvm/versions/node/v10.17.0/lib/node_modules/@aws-amplify/cli/node_modules/amplify-category-function/lib/provider-utils/awscloudformation/../../../amplify-category-auth/provider-utils/awscloudformation/triggers/PreTokenGeneration/PreTokenGeneration.map.json

I installed amplify 4.16.1 and the bug does not exist.

Amplify CLI Version 4.17.1

To Reproduce Create a working project with a version prior to 4.17.x or have an existing working Amplify project, then in a new account on a new machine, download the source code from the working project and initialize the project. Answer N when it asks to create the Lambda.

Expected behavior I expect the project to successfully initialize when I provide an appropriate response. In this project I expect the N response to successfully complete the initialization

Desktop (please complete the following information):

  • OS: Mac
  • Node Version: v10.17.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
no-creative-namecommented, Mar 23, 2020

I have the same problem, just with the CustomMessage trigger.

Error: ENOENT: no such file or directory, open 'C:\Users\timo.mayer\AppData\Roaming\npm\node_modules\@aws-amplify\cli\node_modules\amplify-category-function\lib\provider-utils\awscloudformation/../../../amplify-category-auth/provider-utils/awscloudformation/triggers/CustomMessage/CustomMessage.map.json'

0reactions
github-actions[bot]commented, May 26, 2021

This issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How is "No such file or directory" getting added to my PATH ...
Today I noticed that my path has an entry No such file or directory at the end, which causing other problems.
Read more >
No such file or directory in Intellij while working with filereader
I'm running into problems on running very basic File I/O programs. import java.io.*; import java.util.Scanner; public class NamePlaces { ...
Read more >
No such file or Directory? - PythonAnywhere help
python: can't open file 'myfile.txt': [Errno 2] No such file or directory ... The fix is to use the full, absolute path, instead...
Read more >
R shiny deploying " No such file in path" - RStudio Community
keep receiving the error "paths should be to files within project directory". , it works locally but i get this error and then...
Read more >
Path Operations - Essential Java Classes - Oracle Help Center
err.format("%s: no such" + " file or directory%n", path); // Logic for case when file doesn't exist ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found