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

Module Not Found Error After Installing #73

Open
dano1066 opened this issue Apr 21, 2023 · 0 comments
Open

Module Not Found Error After Installing #73

dano1066 opened this issue Apr 21, 2023 · 0 comments

Comments

@dano1066
Copy link

dano1066 commented Apr 21, 2023

I used "npm install css-purge -g" from the main docs to install and when I run the following command "css-purge -i localcss.txt -o localcssnew.css"

internal/modules/cjs/loader.js:905
  throw err;
  ^

Error: Cannot find module 'C:\Users\dan\Desktop\blg\css-purge'
←[90m    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)←[39m
←[90m    at Function.Module._load (internal/modules/cjs/loader.js:746:27)←[39m
←[90m    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)←[39m
←[90m    at internal/main/run_main_module.js:17:47←[39m {
  code: ←[32m'MODULE_NOT_FOUND'←[39m,
  requireStack: []
}

Tried to install the project by checking out the git repo and running npm install. This also throws exceptions.

Error: ENOENT: no such file or directory, stat 'l'
←[90m    at Object.statSync (fs.js:1127:3)←[39m
    at getFilesizeInKiloBytes (C:\Users\dan\Desktop\blg\csspurge\css-purge\lib\css-purge.js:1127:18)
    at readCSSFile (C:\Users\dan\Desktop\blg\csspurge\css-purge\lib\css-purge.js:2134:17)
    at CSSPurgeEmitter.continueCSSFilesProcessAfterConfig (C:\Users\dan\Desktop\blg\csspurge\css-purge\lib\css-purge.js:1909:6)
←[90m    at CSSPurgeEmitter.emit (events.js:375:28)←[39m
    at readConfig (C:\Users\dan\Desktop\blg\csspurge\css-purge\lib\css-purge.js:1737:14)
    at CSSPurgeEmitter.continueCSSFilesProcess (C:\Users\dan\Desktop\blg\csspurge\css-purge\lib\css-purge.js:1931:5)
←[90m    at CSSPurgeEmitter.emit (events.js:375:28)←[39m
    at ReadStream.<anonymous> (C:\Users\dan\Desktop\blg\csspurge\css-purge\lib\css-purge.js:1673:14)
←[90m    at ReadStream.emit (events.js:387:35)←[39m {
  errno: ←[33m-4058←[39m,
  syscall: ←[32m'stat'←[39m,
  code: ←[32m'ENOENT'←[39m,
  path: ←[32m'l'←[39m
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant