Missing .gitignore file in boilerplate
See original GitHub issueWhat’s going on?
In ignite-cli@4.0.0
, ignite-cli new
command fails when trying to copy non-existing .gitignore
file from boilerplate. Manually adding the .gitignore
to the boilerplate
folder in node_modules
fixes it. I have tried it with npx
, global and local install.
Steps to reproduce
- Run
ignite-cli new PizzaApp
. - Receive error:
/usr/local/lib/node_modules/ignite-cli/node_modules/gluegun/build/index.js:13
throw up;
^
Error: Path to copy doesn't exist /usr/local/lib/node_modules/ignite-cli/boilerplate/.gitignore
at generateNoSourceError (/usr/local/lib/node_modules/ignite-cli/node_modules/fs-jetpack/lib/copy.js:52:15)
at checksBeforeCopyingSync (/usr/local/lib/node_modules/ignite-cli/node_modules/fs-jetpack/lib/copy.js:83:11)
at Object.copySync [as sync] (/usr/local/lib/node_modules/ignite-cli/node_modules/fs-jetpack/lib/copy.js:150:3)
at Object.copy (/usr/local/lib/node_modules/ignite-cli/node_modules/fs-jetpack/lib/jetpack.js:76:12)
at /usr/local/lib/node_modules/ignite-cli/build/commands/new.js:129:36
at step (/usr/local/lib/node_modules/ignite-cli/build/commands/new.js:44:23)
at Object.next (/usr/local/lib/node_modules/ignite-cli/build/commands/new.js:25:53)
at fulfilled (/usr/local/lib/node_modules/ignite-cli/build/commands/new.js:16:58) {
code: 'ENOENT'
}
ignite doctor
results:
platform darwin
arch x64
cpu 12 cores Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
JavaScript
node 15.4.0 /usr/local/bin/node
npm 7.0.15 /usr/local/bin/npm
yarn 1.22.10 /usr/local/bin/yarn
Ignite
ignite-cli 4.0.0 /usr/local/bin/ignite
ignite src build /usr/local/lib/node_modules/ignite-cli/build
Android
java 1.8.0_275 /usr/bin/java
iOS
xcode 12.3
cocoapods 1.10.0 /usr/local/bin/pod
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:13 (3 by maintainers)
Top Results From Across the Web
gitignore is ignored by Git
My .gitignore file seems to be being ignored by Git - could the .gitignore file be corrupt? Which file format, locale or culture...
Read more >Allow users to select a template for an empty or missing ...
gitignore file from a template is selected, the user will be presented with a dropdown of the known templates. This dropdown is already ......
Read more >How To Create a .gitignore for a Clean React Repository
A .gitignore is a file in a git repository that specifies files for git not track. · Each line of a .gitignore is...
Read more >Absence of .gitignore file for C# - Visual Studio Feedback
Hi,. when user tries to create new git repo there is no option to add .gitignore file for C# and doesn't make sense...
Read more >Add Git Ignore to an existing Visual Studio Solution (New ...
Open Visual Studio and the solution needing an ignore file. From the top menu select Git > Settings. The above will open Visual...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To fix this error, simply copy the .gitignore from here and paste it on the reported missing path.
I temporary solved this as follow