node.js - less css and and node js troubles -


when try install less css compiler under ubuntu 13.10 box following message , lescss don't working. in way can fix problem? execute:

sudo npm install -g less 

after e list ok messages:

npm http 304 https://registry.npmjs.org/cryptiles npm http 304 https://registry.npmjs.org/ctype/0.5.2 npm http 304 https://registry.npmjs.org/combined-stream npm http https://registry.npmjs.org/delayed-stream/0.0.5 npm http 304 https://registry.npmjs.org/sntp npm http 304 https://registry.npmjs.org/boom npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5 

and list finished following:

 /usr/local/bin/lessc -> /usr/local/lib/node_modules/less/bin/lessc     less@1.7.0 /usr/local/lib/node_modules/less     ├── mime@1.2.11     ├── mkdirp@0.3.5     ├── source-map@0.1.33 (amdefine@0.1.0)     ├── clean-css@2.1.8 (commander@2.1.0)     └── request@2.34.0 (json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, qs@0.6.6, tunnel-agent@0.3.0, oauth-sign@0.3.0, node-uuid@1.4.1, tough-cookie@0.12.1, http-signature@0.10.0, hawk@1.0.0, form-data@0.1.2) 

after when tried following commands:

echo "@foo: 25px; #foobar{font-size: @foo};" > style.less sudo lessc ./style.less ./style.css 

i following error:

/usr/bin/env: node: no such file or directory 

after executed

ln -s /usr/bin/node /usr/local/bin/nodejs 

and created symlinks there no errors lessc compiler don't working properly. have created file test. content is:

cat style.less

@color: #4d926f;  #header {   color: @color; } h2 {   color: @color; }` 

and after trying

lessc styles.less > styles.css 

there created file - styles.css file empty. try commands tryed before - see top on post.

lessc styles.less styles.css 

but not working. there no file result. when tried

sudo npm install -g less 

in last line receive following error.

npm http 200 https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz /usr/bin/lessc -> /usr/lib/node_modules/less/bin/lessc npm err! refusing delete: /usr/bin/lessc not in /usr/lib/node_modules/less file exists: /usr/bin/lessc move away, , try again.   npm err! system linux 3.11.0-19-generic npm err! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "less" npm err! cwd /home/georgi npm err! node -v v0.10.26 npm err! npm -v 1.4.3 npm err! path /usr/bin/lessc npm err! code eexist npm err!  npm err! additional logging details can found in: npm err!     /home/georgi/npm-debug.log npm err! not ok code 0 

i grateful advice , recommendations.

best regards.

the > command operator incorrect in command. correct command :

lessc [sourcefile] [destfile] 

for example, command :

lessc styles.less styles.css 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -