# Creating a basic Next app but can't pnpm install

**URL:** <https://forum.builder.io/t/creating-a-basic-next-app-but-cant-pnpm-install/4434>\
**Category:** Bugs\
**Tags:** nextjs\
**Created:** [November 8, 2023, 10:39pm UTC](https://forum.builder.io/t/creating-a-basic-next-app-but-cant-pnpm-install/4434 "2023-11-08T22:39:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![saurabhkarya](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@saurabhkarya](https://forum.builder.io/u/saurabhkarya)\
**Post date:** [November 8, 2023, 10:39pm UTC](https://forum.builder.io/t/creating-a-basic-next-app-but-cant-pnpm-install/4434/1 "2023-11-08T22:39:23Z")

</div>

I have simply followed the process of startig my nextJS app, and then deploying it to Vercel, however I’m met with the following error when trying to pnpm install:

bash-3.2$ pnpm install  
Packages: +80  
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
Progress: resolved 416, reused 408, downloaded 0, added 0, done  
node\_modules/.pnpm/isolated-vm@4.6.0/node\_modules/isolated-vm: Running install script, failed in 1.2s  
…/node\_modules/isolated-vm install$ prebuild-install || (node-gyp rebuild --release -j 4 && node-gyp clean)  
│ prebuild-install warn install No prebuilt binaries found (target=18.16.1 runtime=node arch=arm64 libc= platform=darwin)  
│ gyp info it worked if it ends with ok  
│ gyp info using node-gyp@9.4.1  
│ gyp info using node@18.16.1 | darwin | arm64  
│ gyp info find Python using Python version 3.11.3 found at “/usr/local/opt/python@3.11/bin/python3.11”  
│ gyp info spawn /usr/local/opt/python@3.11/bin/python3.11  
│ gyp info spawn args [  
│ gyp info spawn args ‘/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/gyp\_main.py’,  
│ gyp info spawn args ‘binding.gyp’,  
│ gyp info spawn args ‘-f’,  
│ gyp info spawn args ‘make’,  
│ gyp info spawn args ‘-I’,  
│ gyp info spawn args ‘/Users/saurabharya/Documents/Github/byteme-v3/byteme-app/node\_modules/.pnpm/isolated-vm@4.6.0/node\_modules/isolated-vm/build/config.gypi’,  
│ gyp info spawn args ‘-I’,  
│ gyp info spawn args ‘/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/addon.gypi’,  
│ gyp info spawn args ‘-I’,  
│ gyp info spawn args ‘/Users/saurabharya/Library/Caches/node-gyp/18.16.1/include/node/common.gypi’,  
│ gyp info spawn args ‘-Dlibrary=shared\_library’,  
│ gyp info spawn args ‘-Dvisibility=default’,  
│ gyp info spawn args ‘-Dnode\_root\_dir=/Users/saurabharya/Library/Caches/node-gyp/18.16.1’,  
│ gyp info spawn args ‘-Dnode\_gyp\_dir=/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp’,  
│ gyp info spawn args ‘-Dnode\_lib\_file=/Users/saurabharya/Library/Caches/node-gyp/18.16.1/\<(target\_arch)/node.lib’,  
│ gyp info spawn args ‘-Dmodule\_root\_dir=/Users/saurabharya/Documents/Github/byteme-v3/byteme-app/node\_modules/.pnpm/isolated-vm@4.6.0/node\_modules/isolated-vm’,  
│ gyp info spawn args ‘-Dnode\_engine=v8’,  
│ gyp info spawn args ‘–depth=.’,  
│ gyp info spawn args ‘–no-parallel’,  
│ gyp info spawn args ‘–generator-output’,  
│ gyp info spawn args ‘build’,  
│ gyp info spawn args ‘-Goutput\_dir=.’  
│ gyp info spawn args ]  
│ No receipt for ‘com.apple.pkg.CLTools\_Executables’ found at ‘/’.  
│ No receipt for ‘com.apple.pkg.DeveloperToolsCLILeo’ found at ‘/’.  
│ No receipt for ‘com.apple.pkg.DeveloperToolsCLI’ found at ‘/’.  
│ Traceback (most recent call last):  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/xcode\_emulation.py”, line 1502, in XcodeVersion  
│ version\_list = GetStdoutQuiet([“xcodebuild”, “-version”]).splitlines()  
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/xcode\_emulation.py”, line 1563, in GetStdoutQuiet  
│ raise GypError(“Error %d running %s” % (job.returncode, cmdlist[0]))  
│ gyp.common.GypError: Error 1 running xcodebuild  
│ During handling of the above exception, another exception occurred:  
│ Traceback (most recent call last):  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/gyp\_main.py”, line 45, in   
│ sys.exit(gyp.script\_main())  
│ ^^^^^^^^^^^^^^^^^  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/ **init**.py”, line 686, in script\_main  
│ return main(sys.argv[1:])  
│ ^^^^^^^^^^^^^^^^^^  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/ **init**.py”, line 678, in main  
│ return gyp\_main(args)  
│ ^^^^^^^^^^^^^^  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/ **init**.py”, line 663, in gyp\_main  
│ generator.GenerateOutput(flat\_list, targets, data, params)  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/generator/make.py”, line 2651, in GenerateOutput  
│ writer.Write(  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/generator/make.py”, line 902, in Write  
│ self.WriteCopies(spec[“copies”], extra\_outputs, part\_of\_all)  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/generator/make.py”, line 1298, in WriteCopies  
│ env = self.GetSortedXcodeEnv()  
│ ^^^^^^^^^^^^^^^^^^^^^^^^  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/generator/make.py”, line 2269, in GetSortedXcodeEnv  
│ return gyp.xcode\_emulation.GetSortedXcodeEnv(  
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/xcode\_emulation.py”, line 1888, in GetSortedXcodeEnv  
│ env = \_GetXcodeEnv(  
│ ^^^^^^^^^^^^^  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/xcode\_emulation.py”, line 1743, in \_GetXcodeEnv  
│ “XCODE\_VERSION\_ACTUAL”: XcodeVersion()[0],  
│ ^^^^^^^^^^^^^^  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/xcode\_emulation.py”, line 1513, in XcodeVersion  
│ version = CLTVersion() # macOS Catalina returns 11.0.0.0.1.1567737322  
│ ^^^^^^^^^^^^  
│ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/xcode\_emulation.py”, line 1551, in CLTVersion  
│ return re.search(regex, output).groupdict()[“version”]  
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
│ AttributeError: ‘NoneType’ object has no attribute ‘groupdict’  
│ gyp ERR! configure error  
│ gyp ERR! stack Error: `gyp` failed with exit code: 1  
│ gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/lib/configure.js:325:16)  
│ gyp ERR! stack at ChildProcess.emit (node:events:513:28)  
│ gyp ERR! stack at ChildProcess.\_handle.onexit (node:internal/child\_process:291:12)  
│ gyp ERR! System Darwin 21.6.0  
│ gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/bin/node-gyp.js” “rebuild” “–release” “-j” “4”  
│ gyp ERR! cwd /Users/saurabharya/Documents/Github/byteme-v3/byteme-app/node\_modules/.pnpm/isolated-vm@4.6.0/node\_modules/isolated-vm  
│ gyp ERR! node -v v18.16.1  
│ gyp ERR! node-gyp -v v9.4.1  
│ gyp ERR! not ok  
└─ Failed in 1.2s at /Users/saurabharya/Documents/Github/byteme-v3/byteme-app/node\_modules/.pnpm/isolated-vm@4.6.0/node\_modules/isolated-vm  
ELIFECYCLE Command failed with exit code 1.

---

<div class="post-metadata">

**Author:** ![chtbks-jason](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/chtbks-jason/32/2242_2.png) [@chtbks-jason](https://forum.builder.io/u/chtbks-jason)\
**Post date:** [November 10, 2023, 6:49pm UTC](https://forum.builder.io/t/creating-a-basic-next-app-but-cant-pnpm-install/4434/2 "2023-11-10T18:49:28Z")

</div>

@saurabhkarya That appears to be an issue with the isolated-vm Node package. Are you running in a monorepo (like NX or TurboRepo)?

---

<div class="post-metadata">

**Author:** ![radis](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@radis](https://forum.builder.io/u/radis)\
**Post date:** [January 29, 2024, 8:10am UTC](https://forum.builder.io/t/creating-a-basic-next-app-but-cant-pnpm-install/4434/3 "2024-01-29T08:10:55Z")

</div>

i also encountered a similar problem. I am using monorepo, how can I fix this?

---

<div class="post-metadata">

**Author:** ![chtbks-jason](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/chtbks-jason/32/2242_2.png) [@chtbks-jason](https://forum.builder.io/u/chtbks-jason)\
**Post date:** [January 29, 2024, 3:36pm UTC](https://forum.builder.io/t/creating-a-basic-next-app-but-cant-pnpm-install/4434/4 "2024-01-29T15:36:10Z")

</div>

@radis Can you post your error log? If it’s similar to the one above, I’m wondering if you have a dependency that’s trying to build using Python, but can’t find `python` in your PATH. This could be due to using an alias, or something similar.

---

<div class="post-metadata">

**Author:** ![radis](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@radis](https://forum.builder.io/u/radis)\
**Post date:** [January 30, 2024, 2:13am UTC](https://forum.builder.io/t/creating-a-basic-next-app-but-cant-pnpm-install/4434/5 "2024-01-30T02:13:09Z")

</div>

![Screenshot 2024-01-30 at 10.11.48](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/9/94a89843db8be434f7d8de021118e4b88773babd.png)

---

<div class="post-metadata">

**Author:** ![chtbks-jason](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/chtbks-jason/32/2242_2.png) [@chtbks-jason](https://forum.builder.io/u/chtbks-jason)\
**Post date:** [January 30, 2024, 6:06pm UTC](https://forum.builder.io/t/creating-a-basic-next-app-but-cant-pnpm-install/4434/6 "2024-01-30T18:06:15Z")

</div>

@radis I think I saw that there’s a known issue with this right now. Maybe this thread?

> [@Error: Cannot find module 'isolated-vm'](https://forum.builder.io/t/error-cannot-find-module-isolated-vm/4884):
>
> nextjs: 13.4.3 @builder.io/sdk-react：0.12.3 deploy node version: 18(local 21) use pnpm，monorepo An error occurs during deployment Error: Cannot find module 'isolated-vm' But I can deploy normally using version 0.8.0（@builder.io/sdk-react）

---

<div class="post-metadata">

**Author:** ![chetansaxena](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/chetansaxena/32/5558_2.png) [@chetansaxena](https://forum.builder.io/u/chetansaxena)\
**Post date:** [June 30, 2026, 2:36pm UTC](https://forum.builder.io/t/creating-a-basic-next-app-but-cant-pnpm-install/4434/7 "2026-06-30T14:36:33Z")

</div>

> [@saurabhkarya](#):
>
> I have simply followed the process of startig my nextJS app, and then deploying it to Vercel, however I’m met with the following error when trying to pnpm install:
> 
> bash-3.2$ pnpm install  
> Packages: +80  
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
> Progress: resolved 416, reused 408, downloaded 0, added 0, done  
> node\_modules/.pnpm/isolated-vm@4.6.0/node\_modules/isolated-vm: Running install script, failed in 1.2s  
> …/node\_modules/isolated-vm install$ prebuild-install || (node-gyp rebuild --release -j 4 && node-gyp clean)  
> │ prebuild-install warn install No prebuilt binaries found (target=18.16.1 runtime=node arch=arm64 libc= platform=darwin)  
> │ gyp info it worked if it ends with ok  
> │ gyp info using node-gyp@9.4.1  
> │ gyp info using node@18.16.1 | darwin | arm64  
> │ gyp info find Python using Python version 3.11.3 found at “/usr/local/opt/python@3.11/bin/python3.11”  
> │ gyp info spawn /usr/local/opt/python@3.11/bin/python3.11  
> │ gyp info spawn args [  
> │ gyp info spawn args ‘/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/gyp\_main.py’,  
> │ gyp info spawn args ‘binding.gyp’,  
> │ gyp info spawn args ‘-f’,  
> │ gyp info spawn args ‘make’,  
> │ gyp info spawn args ‘-I’,  
> │ gyp info spawn args ‘/Users/saurabharya/Documents/Github/byteme-v3/byteme-app/node\_modules/.pnpm/isolated-vm@4.6.0/node\_modules/isolated-vm/build/config.gypi’,  
> │ gyp info spawn args ‘-I’,  
> │ gyp info spawn args ‘/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/addon.gypi’,  
> │ gyp info spawn args ‘-I’,  
> │ gyp info spawn args ‘/Users/saurabharya/Library/Caches/node-gyp/18.16.1/include/node/common.gypi’,  
> │ gyp info spawn args ‘-Dlibrary=shared\_library’,  
> │ gyp info spawn args ‘-Dvisibility=default’,  
> │ gyp info spawn args ‘-Dnode\_root\_dir=/Users/saurabharya/Library/Caches/node-gyp/18.16.1’,  
> │ gyp info spawn args ‘-Dnode\_gyp\_dir=/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp’,  
> │ gyp info spawn args ‘-Dnode\_lib\_file=/Users/saurabharya/Library/Caches/node-gyp/18.16.1/\<(target\_arch)/node.lib’,  
> │ gyp info spawn args ‘-Dmodule\_root\_dir=/Users/saurabharya/Documents/Github/byteme-v3/byteme-app/node\_modules/.pnpm/isolated-vm@4.6.0/node\_modules/isolated-vm’,  
> │ gyp info spawn args ‘-Dnode\_engine=v8’,  
> │ gyp info spawn args ‘–depth=.’,  
> │ gyp info spawn args ‘–no-parallel’,  
> │ gyp info spawn args ‘–generator-output’,  
> │ gyp info spawn args ‘build’,  
> │ gyp info spawn args ‘-Goutput\_dir=.’  
> │ gyp info spawn args ]  
> │ No receipt for ‘com.apple.pkg.CLTools\_Executables’ found at ‘/’.  
> │ No receipt for ‘com.apple.pkg.DeveloperToolsCLILeo’ found at ‘/’.  
> │ No receipt for ‘com.apple.pkg.DeveloperToolsCLI’ found at ‘/’.  
> │ Traceback (most recent call last):  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/xcode\_emulation.py”, line 1502, in XcodeVersion  
> │ version\_list = GetStdoutQuiet([“xcodebuild”, “-version”]).splitlines()  
> │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/xcode\_emulation.py”, line 1563, in GetStdoutQuiet  
> │ raise GypError(“Error %d running %s” % (job.returncode, cmdlist[0]))  
> │ gyp.common.GypError: Error 1 running xcodebuild  
> │ During handling of the above exception, another exception occurred:  
> │ Traceback (most recent call last):  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/gyp\_main.py”, line 45, in  
> │ sys.exit(gyp.script\_main())  
> │ ^^^^^^^^^^^^^^^^^  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/ **init**.py”, line 686, in script\_main  
> │ return main(sys.argv[1:])  
> │ ^^^^^^^^^^^^^^^^^^  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/ **init**.py”, line 678, in main  
> │ return gyp\_main(args)  
> │ ^^^^^^^^^^^^^^  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/ **init**.py”, line 663, in gyp\_main  
> │ generator.GenerateOutput(flat\_list, targets, data, params)  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/generator/make.py”, line 2651, in GenerateOutput  
> │ writer.Write(  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/generator/make.py”, line 902, in Write  
> │ self.WriteCopies(spec[“copies”], extra\_outputs, part\_of\_all)  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/generator/make.py”, line 1298, in WriteCopies  
> │ env = self.GetSortedXcodeEnv()  
> │ ^^^^^^^^^^^^^^^^^^^^^^^^  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/generator/make.py”, line 2269, in GetSortedXcodeEnv  
> │ return gyp.xcode\_emulation.GetSortedXcodeEnv(  
> │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/xcode\_emulation.py”, line 1888, in GetSortedXcodeEnv  
> │ env = \_GetXcodeEnv(  
> │ ^^^^^^^^^^^^^  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/xcode\_emulation.py”, line 1743, in \_GetXcodeEnv  
> │ “XCODE\_VERSION\_ACTUAL”: XcodeVersion()[0],  
> │ ^^^^^^^^^^^^^^  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/xcode\_emulation.py”, line 1513, in XcodeVersion  
> │ version = CLTVersion() # macOS Catalina returns 11.0.0.0.1.1567737322  
> │ ^^^^^^^^^^^^  
> │ File “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/gyp/pylib/gyp/xcode\_emulation.py”, line 1551, in CLTVersion  
> │ return re.search(regex, output).groupdict()[“version”]  
> │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
> │ AttributeError: ‘NoneType’ object has no attribute ‘groupdict’  
> │ gyp ERR! configure error  
> │ gyp ERR! stack Error: `gyp` failed with exit code: 1  
> │ gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/lib/configure.js:325:16)  
> │ gyp ERR! stack at ChildProcess.emit (node:events:513:28)  
> │ gyp ERR! stack at ChildProcess.\_handle.onexit (node:internal/child\_process:291:12)  
> │ gyp ERR! System Darwin 21.6.0  
> │ gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node\_modules/pnpm/dist/node\_modules/node-gyp/bin/node-gyp.js” “rebuild” “–release” “-j” “4”  
> │ gyp ERR! cwd /Users/saurabharya/Documents/Github/byteme-v3/byteme-app/node\_modules/.pnpm/isolated-vm@4.6.0/node\_modules/isolated-vm  
> │ gyp ERR! node -v v18.16.1  
> │ gyp ERR! node-gyp -v v9.4.1  
> │ gyp ERR! not ok  
> └─ Failed in 1.2s at /Users/saurabharya/Documents/Github/byteme-v3/byteme-app/node\_modules/.pnpm/isolated-vm@4.6.0/node\_modules/isolated-vm  
> ELIFECYCLE Command failed with exit code 1.

This does not look like a Vercel issue directly. The install is failing on your local machine while building the `isolated-vm` package.

The key error is here:

`No receipt for com.apple.pkg.CLTools_Executables`

That usually means your Mac does not have Xcode Command Line Tools installed properly, or the installation is broken. Since `isolated-vm` could not find a prebuilt binary for your setup, it is trying to compile from source, and that needs Xcode tools.

Try this:

```auto
xcode-select --install

```

Then accept the license:

```auto
sudo xcodebuild -license accept

```

Also check if Xcode tools are correctly selected:

```auto
xcode-select -p

```

If it still fails, reset the tools path:

```auto
sudo xcode-select --reset

```

Then remove dependencies and reinstall:

```auto
rm -rf node_modules pnpm-lock.yaml
pnpm install

```

One more thing: `isolated-vm@4.6.0` can be sensitive to Node versions and native builds. If the issue continues, try using a newer Node 18 version or Node 20, depending on what your project supports.
