Sass package not installed
I wanted to create a css library using sass.
I have already used the sass package several times to compile the css file.
I ran this command:
npm install node-sass --save-dev
I wanted to install the sass package for the directory, but I noticed that no changes were made to the package .json files and the package-lock file was not created.
That’s why I wanted to delete npm and node and install it again.
I manually removed the files myself and then ran Node Uninstaller.
I downloaded node again and after executing the installation command, it gives this error:
node:internal/modules/cjs/loader:1146
throw error
^
Error: Module 'C:Userswin_10AppDataRoamingnpmnode_modulesnpmbinnpm-cli.js' not found
at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js version 20.12.2
Mehrab is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.