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.

Missing .gitignore file in boilerplate

See original GitHub issue

What’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

  1. Run ignite-cli new PizzaApp.
  2. 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:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
akhatriSTcommented, Aug 23, 2021

To fix this error, simply copy the .gitignore from here and paste it on the reported missing path.

2reactions
a-atallacommented, Dec 25, 2020

I temporary solved this as follow

npm i -g ignite-cli

# change the following according to where your npm install the global packages
touch .nvm/versions/node/v14.14.0/lib/node_modules/ignite-cli/boilerplate/.gitignore

ignite-cli new PizzaApp
Read more comments on GitHub >

github_iconTop 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 >

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