Need help troubleshooting Less and less-watch-compiler

by Cory Ortega   Last Updated September 12, 2019 02:01 AM

Today I was setting up less and less-watch-compiler and ran into a few problems. So after downloading node, I then downloaded yarn. From GitBash, I wanted to download less and less-watch-compiler so the first thing I did is:

yarn add global less

This returned a warning that said "warning Pattern ["[email protected]^3.10.3"] is trying to unpack in the same destination "C:\ Users\Cory's Puter\AppData\Local\Yarn\Cache\v4\npm-less-3.10.3-417a0975d5ee ecc52cff4bcfa3c09d35781e6792\node_modules\less" as pattern ["[email protected]^3.8.1"]. This could result in non-deterministic behavior, skipping." but finished the download anyways. After that, I did:

yarn add global less-watch-compiler

which downloaded just fine, no warnings or anything. The problem comes when I change directory to a folder that has less, css, and index.less files and try to run:

less-watch-compiler less css index.less

It returns this error: "internal/modules/cjs/loader.js:638 throw err; ^

Error: Cannot find module 'C:\c\Users\Cory's Puter\AppData\Roaming\npm\node_modules\less-watch-compiler\dist\less-watch-compiler.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)"

I have no idea how to fix this issue and any help is GREATLY appreciated.

Related Questions

Link in HTML cannot execute .sh file

Updated September 03, 2017 12:01 PM

Run a shell script with an html button

Updated August 11, 2018 09:01 AM

Using bash to export an comma separated list to html

Updated October 21, 2018 02:01 AM