Need help troubleshooting less and less-watch-compiler

0

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 was:

yarn add global less

This returned this warning:

warning Pattern ["less@^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 ["less@^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 returned 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)

Cory Ortega

Posted 2019-09-12T01:42:37.133

Reputation: 1

No answers