# Getting Error While hitting " npm install "@builder.io/sdk-svelte" "

**URL:** <https://forum.builder.io/t/getting-error-while-hitting-npm-install-builder-io-sdk-svelte/5816>\
**Category:** Technical Questions\
**Created:** [June 18, 2024, 12:39pm UTC](https://forum.builder.io/t/getting-error-while-hitting-npm-install-builder-io-sdk-svelte/5816 "2024-06-18T12:39:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sid\_jain\_21](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@sid\_jain\_21](https://forum.builder.io/u/sid_jain_21)\
**Post date:** [June 18, 2024, 12:39pm UTC](https://forum.builder.io/t/getting-error-while-hitting-npm-install-builder-io-sdk-svelte/5816/1 "2024-06-18T12:39:25Z")

</div>

**What are you trying to accomplish**  
\*e.g. I want to create a svelte project using “npm create svelte@latest routing-app” but when i am trying to hit "npm install “@builder.io/sdk-svelte” ", I am getting errors, i have tried reinstalling node as well as visual studio. Checked that the full control is selected. still getting same error.

**Code stack you are integrating Builder with**  
\*e.g. Svelte

**Error Message**  
npm warn cleanup Failed to remove some directories [  
npm warn cleanup [  
npm warn cleanup ‘D:\JunTest\routing-app\node\_modules\@jridgewell\sourcemap-codec’,  
npm warn cleanup [Error: EPERM: operation not permitted, rmdir ‘D:\JunTest\routing-app\node\_modules@jridgewell\sourcemap-codec\dist\types’] {  
npm warn cleanup errno: -4048,  
npm warn cleanup code: ‘EPERM’,  
npm warn cleanup syscall: ‘rmdir’,  
npm warn cleanup path: ‘D:\JunTest\routing-app\node\_modules\@jridgewell\sourcemap-codec\dist\types’  
npm warn cleanup }  
npm warn cleanup ],  
npm warn cleanup [  
npm warn cleanup ‘D:\JunTest\routing-app\node\_modules\@sveltejs\kit’,  
npm warn cleanup [Error: EPERM: operation not permitted, rmdir ‘D:\JunTest\routing-app\node\_modules@sveltejs\kit\src\types’] {  
npm warn cleanup errno: -4048,  
npm warn cleanup code: ‘EPERM’,  
npm warn cleanup syscall: ‘rmdir’,  
npm warn cleanup path: ‘D:\JunTest\routing-app\node\_modules\@sveltejs\kit\src\types’  
npm warn cleanup }  
npm warn cleanup ],  
npm warn cleanup [  
npm warn cleanup ‘D:\JunTest\routing-app\node\_modules\@sveltejs’,  
npm warn cleanup [Error: EPERM: operation not permitted, rmdir ‘D:\JunTest\routing-app\node\_modules@sveltejs\kit\src\runtime’] {  
npm warn cleanup errno: -4048,  
npm warn cleanup code: ‘EPERM’,  
npm warn cleanup syscall: ‘rmdir’,  
npm warn cleanup path: ‘D:\JunTest\routing-app\node\_modules\@sveltejs\kit\src\runtime’  
npm warn cleanup }  
npm warn cleanup ],  
npm warn cleanup [  
npm warn cleanup ‘D:\JunTest\routing-app\node\_modules’,  
npm warn cleanup [Error: EPERM: operation not permitted, rmdir ‘D:\JunTest\routing-app\node\_modules@builder.io\sdk-svelte\lib\browser\components\block\components’] {  
npm warn cleanup errno: -4048,  
npm warn cleanup code: ‘EPERM’,  
npm warn cleanup syscall: ‘rmdir’,  
npm warn cleanup path: ‘D:\JunTest\routing-app\node\_modules\@builder.io\sdk-svelte\lib\browser\components\block\components’  
npm warn cleanup }  
npm warn cleanup ]  
npm warn cleanup ]  
npm error code 1  
npm error path D:\JunTest\routing-app\node\_modules\isolated-vm  
npm error command failed  
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install || (node-gyp rebuild --release -j max && node-gyp clean)  
npm error cl : command line warning D9025: overriding ‘/std:c++20’ with ‘/std:c++17’ [D:\JunTest\routing-app\node\_modules\isolated-vm\build\nortti.vcxproj]  
npm error cl : command line warning D9025: overriding ‘/GR-’ with ‘/GR’ [D:\JunTest\routing-app\node\_modules\isolated-vm\build\nortti.vcxproj]  
npm error serializer\_nortti.cc  
npm error cl : command line warning D9025: overriding ‘/std:c++20’ with ‘/std:c++17’ [D:\JunTest\routing-app\node\_modules\isolated-vm\build\isolated\_vm.vcxproj]  
npm error cl : command line warning D9025: overriding ‘/GR-’ with ‘/GR’ [D:\JunTest\routing-app\node\_modules\isolated-vm\build\isolated\_vm.vcxproj]  
npm error external\_copy.cc  
npm error D:\JunTest\routing-app\node\_modules\isolated-vm\src\isolate\generic\error.h(84,80): error C2440: ‘specialization’: cannot convert from ‘v8::Localv8::Value (\_\_cdecl \*)(v8::Localv8::String,v8::Localv8::Value)’ to ‘v8::Localv8::Value (\_\_cdecl \*)(v8::Localv8::String)’ [D:\JunTest\routing-app\node\_modules\isolated-vm\build\nortti.vcxproj]  
n

---

<div class="post-metadata">

**Author:** ![sheema](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@sheema](https://forum.builder.io/u/sheema)\
**Post date:** [June 19, 2024, 12:29pm UTC](https://forum.builder.io/t/getting-error-while-hitting-npm-install-builder-io-sdk-svelte/5816/2 "2024-06-19T12:29:01Z")

</div>

Hey @sid_jain_21 It looks like there’s an issue with permissions and some potentially conflicting library versions during the install process. Here are several steps you can follow to try and resolve this:

### **Steps to Resolve the Issue:**

1. **Clear the npm Cache:**  
Often, npm’s cache can contain old or corrupted files. Clear the cache using:

2. **Run Command as Administrator:**  
Sometimes the issue is related to permissions. Try running your terminal or command prompt as an administrator.

3. **Check Windows Defender or Antivirus Software:**  
Windows Defender or other antivirus software can sometimes lock files. Make sure that these tools are not blocking or influencing npm’s install process. Temporarily disabling them could help.

4. **Delete `node_modules` and `package-lock.json`:**  
Completely remove the `node_modules` directory and `package-lock.json` file from your project and try installing dependencies again.

5. **Install Dependencies with Yarn:**  
Sometimes using an alternative package manager like Yarn can resolve the issue.

6. **Ensure Node and NPM are Updated:**  
Make sure you’re using the latest version of Node.js and npm.

7. **Avoid Path Length Limitations in Windows:**  
Windows has a path length limitation that sometimes causes issues. You can try enabling long paths in the Windows Group Policy Editor or using a path closer to the root, such as `C:\dev`.

8. **Manual Isolation:**  
If the issue persists, it might be worth trying to isolate and install the problematic packages individually:

### **Example of Integrating [Builder.io](http://Builder.io) in a SvelteKit Project:**

Once you’ve resolved the installation issue, here’s how you can integrate [Builder.io](http://Builder.io) into your SvelteKit project:

1. **Initialize Your SvelteKit Project:**

2. **Install the [Builder.io](http://Builder.io) SDK:**  
Assuming npm is working fine now:

3. **Setup Builder in Your SvelteKit Project:**

4. **Create a Svelte Component to Use Builder:**

5. **Run Your Development Server:**

These steps should help you resolve the initial npm issues and get started with integrating [Builder.io](http://Builder.io) into your SvelteKit project. Remember to check the [documentation](https://www.builder.io/c/docs/integrating-builder-pages) for more details and examples.
