Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] Install Fails when node_modules found in parent of path #2821

Closed
larrygeams opened this issue Aug 10, 2015 · 11 comments
Closed

[Build] Install Fails when node_modules found in parent of path #2821

larrygeams opened this issue Aug 10, 2015 · 11 comments

Comments

@larrygeams
Copy link

Typing 'gulp build' can't build semantic and throws an error saying "Cannot find semantic.json. Run "gulp installation" to set-up Semantic though I already installed gulp

@jlukic
Copy link
Member

jlukic commented Aug 10, 2015

How did you get semantic ui? Did you run the interactive installer?

@larrygeams
Copy link
Author

I just followed it here.
http://semantic-ui.com/introduction/getting-started.html

I read some solution though. It says I need to copy the 'node_modules' inside my project folder and it turns out it works but is there any possible solution for this?

@jlukic
Copy link
Member

jlukic commented Aug 10, 2015

That's really weird. Did you wait for peer dependencies to install or did you exit the process?

What version of npm are you using?

@larrygeams
Copy link
Author

Npm version: 2.5.1

Yeah kinda weird. I just followed the instruction that's it but after gulp build the issue regading "Cannot find semantic.json. Run "gulp installation" comes up. Based here, the only solution I can find is copying the node_modules folder to the semantic project but it has tons of files. Would be great if have different solution to this case.

@mzygmunt
Copy link

I've the same problem. After copying npm_modules following solution - http://stackoverflow.com/a/31881263/375966 work fine. But it's not convenient solution.

My npm version is 2.5.1 and node 0.12.7

@jlukic jlukic changed the title Gulp Build After Installation [Build] Install Fails when node_modules found in parent of path Aug 12, 2015
@jlukic jlukic added this to the 2.1.x milestone Aug 12, 2015
@hmaesta
Copy link

hmaesta commented Sep 30, 2015

Is there a solution for this?

@jonathan-stone
Copy link

It worked for me when I created an empty node_modules folder in the project folder before running npm install semantic-ui --save

@fredrikolovsson
Copy link

It also worked to create an empty node_modules folder in the /semantic folder after having installed semantic (to avoid copying the parent node_modules folder).

@czechnology
Copy link

Unfortunately, creating empty node_modules directory doesn't work for me.
Why can't I somehow specify the exact location of the semantic.json config file? I'd like to separate my source files from the gulp etc. files (i.e. modules shouldn't be in my project directory at all).

@jjwilliams42
Copy link

Possible duplicate of #2056

@stale
Copy link

stale bot commented Feb 24, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 24, 2018
@stale stale bot closed this as completed Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants