# \#npm

**URL:** https://community.localwp.com/tag/npm/119.md

[Latest](https://community.localwp.com/latest.md) · [Categories](https://community.localwp.com/categories.md) · [Tags](https://community.localwp.com/tags.md)

---

## [Closed Post Followup - Exit Code 127](https://community.localwp.com/t/closed-post-followup-exit-code-127/46203)

<div class="topic-metadata">

**Author:** [@richardkrone](https://community.localwp.com/u/richardkrone)\
**Replies:** 1\
**Last updated:** [December 30, 2024, 3:30pm UTC](https://community.localwp.com/t/closed-post-followup-exit-code-127/46203 "2024-12-30T15:30:48Z")

</div>

Hello: I am following up on the closed post ‘wp-scripts’ error when using site shell FOLLOWUP The solution of running ’ export NODE\_ENV=development’ in the CLI did resolve the issue for me at this moment. As is in so …

---

## [Change to NODE\_ENV?](https://community.localwp.com/t/change-to-node-env/43176)

<div class="topic-metadata">

**Author:** [@zackeryfretty](https://community.localwp.com/u/zackeryfretty)\
**Replies:** 7\
**Last updated:** [June 8, 2024, 1:33pm UTC](https://community.localwp.com/t/change-to-node-env/43176 "2024-06-08T13:33:43Z")

</div>

Did something recently change with the way Local handles NODE\_ENV? I’ve started running into an issue that when I use the “Open site shell” feature I can no longer run ‘npm install’ correctly without manually setting th…

---

## [‘wp-scripts’ error when using site shell FOLLOWUP](https://community.localwp.com/t/wp-scripts-error-when-using-site-shell-followup/42463)

<div class="topic-metadata">

**Author:** [@gman](https://community.localwp.com/u/gman)\
**Replies:** 1\
**Last updated:** [April 20, 2024, 1:00pm UTC](https://community.localwp.com/t/wp-scripts-error-when-using-site-shell-followup/42463 "2024-04-20T13:00:09Z")

</div>

What issue or error are you experiencing? new clean WP install and then use Shell to create a custom block in PLUGINS using command “npx @wordpress/create-block” command will fail out of the box Posting the solution beca…

---

## [Pulling from Local is breaking Webpack](https://community.localwp.com/t/pulling-from-local-is-breaking-webpack/27280)

<div class="topic-metadata">

**Author:** [@ryanwalls](https://community.localwp.com/u/ryanwalls)\
**Replies:** 3\
**Last updated:** [August 24, 2021, 4:02pm UTC](https://community.localwp.com/t/pulling-from-local-is-breaking-webpack/27280 "2021-08-24T16:02:57Z")

</div>

Issue Summary I am working on a project using Local connected to WP Engine and a git repo on top. The first time I create the site in Local and pull the database down, and then add the git repo with git remote add origin…

---

## [Cb.apply is not a function](https://community.localwp.com/t/cb-apply-is-not-a-function/26122)

<div class="topic-metadata">

**Author:** [@jhixon](https://community.localwp.com/u/jhixon)\
**Replies:** 2\
**Last updated:** [July 27, 2021, 2:03pm UTC](https://community.localwp.com/t/cb-apply-is-not-a-function/26122 "2021-07-27T14:03:06Z")

</div>

Issue Summary During the creation of a “headless” site I receive the error “cb.apply is not a function”. Note: I am seeing posts on the internet saying that Node 14+ should be associated with NPM 7+ not 5. Troubleshooti…

---

## [NPM Watch and Local are opening local site on two different ports](https://community.localwp.com/t/npm-watch-and-local-are-opening-local-site-on-two-different-ports/22393)

<div class="topic-metadata">

**Author:** [@donnietheg](https://community.localwp.com/u/donnietheg)\
**Replies:** 2\
**Last updated:** [October 6, 2020, 7:24pm UTC](https://community.localwp.com/t/npm-watch-and-local-are-opening-local-site-on-two-different-ports/22393 "2020-10-06T19:24:02Z")

</div>

Issue Summary I develop in Visual Studio Code on Windows 10 to develop my Wordpress sites. I am using the NPM framework by Laravel as part of my workflow. By running the “npm run watch” script, the changes made in my cod…
