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

/bin/sh: ./node_modules/.bin/recess: No such file or directory #6561

Closed
marceloverdijk opened this issue Jan 12, 2013 · 6 comments
Closed

/bin/sh: ./node_modules/.bin/recess: No such file or directory #6561

marceloverdijk opened this issue Jan 12, 2013 · 6 comments
Labels
Milestone

Comments

@marceloverdijk
Copy link

I followed instructions on http://twitter.github.com/bootstrap/extend.html#compiling to compile 2.3.0-wip branch.

I've installed the following components with sudo npm install -g less jshint recess uglify-js

When running make I get:

192:bootstrap marceloverdijk$ make

##################################################
Building Bootstrap...
##################################################

Running JSHint on javascript...             ✔ Done
/bin/sh: ./node_modules/.bin/recess: No such file or directory
make: *** [build] Error 127
192:bootstrap marceloverdijk$ ./node_modules/.bin/recess

As defined in the make file it's pointing to ./node_modules/.bin/recess but when I check the install feedback I see:

[email protected] /usr/local/lib/node_modules/uglify-js
├── [email protected] ([email protected])
└── [email protected] ([email protected])

[email protected] /usr/local/lib/node_modules/recess
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected])

[email protected] /usr/local/lib/node_modules/jshint
├── [email protected] ([email protected])
└── [email protected] ([email protected])

[email protected] /usr/local/lib/node_modules/connect
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected], [email protected])

which is pointing to /usr/local/lib/node_modules/recess

Is there some misconfiguration on my side?

Cheers,
Marcel

@mdo
Copy link
Member

mdo commented Jan 12, 2013

That page is out of date and will be removed in 3.0. Follow the directions in the readme instead. I'll be updating the page for now in #6346 to remove this section and direct folks to the readme.

@mdo
Copy link
Member

mdo commented Jan 12, 2013

Just resolved.

@mdo mdo closed this as completed Jan 12, 2013
@marceloverdijk
Copy link
Author

But as far as I could see the README.md is similar then the page I mentioned, which also states to install:

npm install recess connect uglify-js jshint -g

After that I try to run make but I get the error.

Or am I missing something?

@dudebout
Copy link
Contributor

#6576 fixes the issue by not forcing you to install locally to use bootstrap

@atomgiant
Copy link

@marceloverdijk - I ran into the same thing - a work around is to drop the -g flag from the npm install to install the modules locally to the node_modules directory. Looks like bootstrap expects that currently for 2.3 at least.

See also: http://blog.nodejs.org/2011/03/23/npm-1-0-global-vs-local-installation/

@John-Cass
Copy link

thanks @atomgiant - that worked for me

@twbs twbs locked and limited conversation to collaborators Sep 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants