Encountering difficulty with installing sass

I recently attempted to install node-sass and, while the installation was successful, I encountered an issue where the code in main.scss was not automatically transferred to style.css. In an attempt to resolve this issue, I deleted all related files including package.scss and then tried to reinstall node-sass. However, during the reinstallation process, I encountered a series of errors that prevented me from completing the setup.

PS D:\web course\iti\bootstrap\sass> npm install node-sass
npm WARN deprecated <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1d6f786c68786e695d2f332525332f">[email protected]</a>: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aec6cfdc83d8cfc2c7cacfdac1dcee9b809f809b">[email protected]</a>: this library is no longer supported
npm WARN deprecated <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c6b3b3afa286f5e8f2e8f6">[email protected]</a>: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.
 See https://v8.dev/blog/math-random for details.
npm WARN <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="88fbe9fbfbc8b9a6b8a6b8">[email protected]</a> No description
npm WARN <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d4a7b5a7a794e5fae4fae4">[email protected]</a> No repository field.

npm ERR! code EPERM
npm ERR! syscall unlink
npm ERR! path D:\web course\iti\bootstrap\sass\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, unlink 'D:\web course\iti\bootstrap\sass\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node'
npm ERR!  [OperationalError: EPERM: operation not permitted, unlink 'D:\web course\iti\bootstrap\sass\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node'] {
npm ERR!   cause: [Error: EPERM: operation not permitted, unlink 'D:\web course\iti\bootstrap\sass\node_modules\.node-sass.DELETE\vendor\win32-x64-83\binding.node'] {
npm ERR!     errno: -4048,
npm ERR!     code: 'EPERM',
npm ERR!     syscall: 'unlink',
npm ERR!     path: 'D:\\web course\\iti\\bootstrap\\sass\\node_modules\\.node-sass.DELETE\\vendor\\win32-x64-83\\binding.node'
npm ERR!   },
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'D:\\web course\\iti\\bootstrap\\sass\\node_modules\\.node-sass.DELETE\\vendor\\win32-x64-83\\binding.node',
npm ERR!   parent: 'sass'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\TECH VALLEY\AppData\Roaming\npm-cache\_logs\2021-08-11T14_25_50_073Z-debug.log
PS D:\web course\iti\bootstrap\sass>

Answer №1

attempt the following steps: npm uninstall node-sass after that, proceed with reinstalling

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Utilizing the router.all() function in Express to match all URLs simultaneously while also incorporating Angular's ui-router

Issue resolved. Find the solution below. I implemented the authentication functionality in my app using jQuery ajax calls a while back. Now, I have transitioned from jQuery to Angular and will no longer be utilizing Express.js for routing. In the past, I ...

"One specific div in Safari is having trouble with the external stylesheet, while the other divs are functioning properly- any

I'm facing a puzzling issue that has me stumped. I'm working on a website and have a simple footer with a link at the bottom: <div id="sitefooter"> <a href="#">This is the link</a> </div> My stylesheet includes styling f ...

Tips on creating a file to specify the global npm packages for installation that match my preferences

Can I create a single file to list all the Node packages I want to install globally instead of manually running each command like this: npm install -g eslint npm install -g eslint-plugin-ramda ... ...

Creating middleware to intercept responses for all AJAX requests

I'm working on creating a middleware that will manage all web user responses. Here's what I have so far: function ajaxResponseMiddleware(req, res, next) { var code = res.locals._code || 200; var data = res.locals._response; res.json(co ...

The PUT request in the PERN App is failing to reach the Webapp, despite successfully going through in Postman

I recently completed developing a PERN todo application, which marks my first experience in creating an app that integrates a backend with a frontend connected to a database. Despite successfully testing the put request in Postman, I encountered an issue ...

Issue with Responsive Font Size functionality in Tailwind and ReactJS not functioning as expected

I'm really struggling with this issue. I grasp the concept of mobile-first design and have successfully made my website's layout responsive. However, I'm having trouble getting the font size to change when applying breakpoints as the screen ...

What is the reason behind Express not including a body parser in its bundle?

While I grasp the inner workings of body-parser, I find it baffling that such a basic functionality is not included by default in Express. It seems rather unnecessary, considering how fundamental this feature is. Why does Express require body-parser to r ...

I wonder why NPM is deleting the main: attribute from the package.json file while installing modules in Node JS version 8.11.3 and NPM version 5.0.2

After updating Nodejs to version 8.11.3 from either 8.11.2 or 8.11.1, I noticed that when running NPM install on my project, some modules had their "main" attribute removed from the package.json file. This impacted dependencies like ip, bignumber.js, and i ...

Combining audio and video streams in Node.js

I'm currently developing a YouTube video downloader using the ytdl-core library. However, I've encountered an issue where it cannot fetch high quality videos with audio because they are stored in separate files on YouTube. My goal is to download ...

Inserting a picture using CSS

I attempted to include an image in a footer div, but I have not been successful with the following approach: Here is the HTML code I tried: <footer> <div class="imagenFooter" style="background-image: url(&quot;./images/footer-bg.jpg&quo ...

Tips for increasing the size of Material-ui Rating icons

I am currently utilizing npm to develop a widget. I aim to utilize the material-ui Rating component and have successfully integrated it. However, when I embed the widget on a webpage, the html font-size is set at 62.5%, causing the component to appear too ...

Ways to troubleshoot and fix the problem of encountering an "Internal Server Error" when sending emails with nodeMailer in node.js

When attempting to send a confirmation email using nodemailer, I encountered an internet server error in production when allowing insecure apps for Gmail accounts, although it works fine locally. Any suggestions on how to resolve this issue? router.post(& ...

Is it still beneficial to incorporate image sprites in the design of a mobile web app?

As I work on developing a mobile web app, I find myself debating whether to use individual images or stick with image sprites similar to what I do for my desktop site. My main concern is the potential increase in file size from consolidating all the images ...

Stop menu items from shifting when focused

I've developed a mobile hamburger menu and attempted to adjust the padding to create space between the text and the borders. Here's the HTML: #menu-solutions:hover .menu-item-text, #menu-solutions:focus .menu-item-text, #menu-solutions:ac ...

Having trouble with installing Angular CLI due to an error that says "Hosted-git-info module not found"

While attempting to initiate a new project using ng new, I encountered the following error: npm ERR! code MODULE_NOT_FOUND npm ERR! Cannot find module 'hosted-git-info' Below is the detailed log file: 0 info it worked if it ends with ok 1 verb ...

Is there a way for me to discover the identity of the victor?

There are 4 divs that move at different, random speeds each time. I am trying to determine which one is the fastest or reaches the goal first. Additionally, there is a betting box where you can choose a horse to bet on. I need to compare the winner with my ...

Are you interested in creating dynamic tables/models with Sequelize?

Currently, I am exploring a theoretical question before diving into the implementation phase. The scenario is as follows: In my application, users have the ability to upload structured data such as Excel, CSV files, and more. Based on specific requirement ...

Experiencing errors with fetching and embedding Discord bots

data.embeds[0][LIST_ITEM_VALUE_REQUIRED]: List item values of ModelType are required Encountering this issue when invoking a slash command that generates an embed for display: import { EmbedBuilder } from "discord.js" import fetch from "nod ...

Unable to resolve JSON parsing issue despite attempting multiple solutions. The npm registry error persists

Currently, I am a follower of This particular blog and have been attempting to set up yeoman by using the command: npm install -g yo However, I keep encountering the following error message: npm ERR! registry error parsing json I have made numerous atte ...

The issue of cookies not being transmitted to the AWS ECS server from a ReactJS application

I have recently deployed a MERN Stack application and successfully got the backend API up and running at . Now, my next step is to connect it to the client server which is currently running on localhost:3000. However, I'm encountering a cookie issue. ...