bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

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

Open marceloverdijk opened this issue 13 years ago • 6 comments

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

marceloverdijk avatar Jan 12 '13 09:01 marceloverdijk

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 avatar Jan 12 '13 20:01 mdo

Just resolved.

mdo avatar Jan 12 '13 20:01 mdo

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?

marceloverdijk avatar Jan 12 '13 23:01 marceloverdijk

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

dudebout avatar Jan 14 '13 16:01 dudebout

@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/

atomgiant avatar Jan 24 '13 18:01 atomgiant

thanks @atomgiant - that worked for me

John-Cass avatar Feb 08 '13 06:02 John-Cass