dyld: lazy symbol binding failed: Symbol not found: _pthread_jit_write_protect_supported_np - npm

i upgraded my node version but because my mac version was too old i had to downgrade it back to V16.16.0 (and used nvm use 16.16.0) because else it wouldn't work. Now i get this error when i try to run npm run dev to start my next.js app. How can i fix this? I also tried downgrading my node to 16.0.0 but that also didn't work, i also already removed the node_modules and package-lock.json and did npm install again. I also already did npm update and npm rebuild so im kinda lost now.
dyld: lazy symbol binding failed: Symbol not found: _pthread_jit_write_protect_supported_np
Referenced from: /Users/user/project_folder/mysite.nl/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _pthread_jit_write_protect_supported_np
Referenced from: /Users/user/project_folder/mysite.nl/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
Expected in: /usr/lib/libSystem.B.dylib
Abort trap: 6

Related

Error: ": Unexpected token \u0000 in JSON at position 0" when using yarn to add a react package

I am trying to install the following package through yarn yarn add react-native-gesture-handler#1.10.2. I read multiple answers to this question yet none was of use. I think the problem might come from the fact I am on a windows computer yet don't know how to solve it.
Whenenever y try to do a yarn add ..#version I get the following error:
yarn add v1.22.11
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is
advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json
[1/4] Resolving packages...
[2/4] Fetching packages...
error An unexpected error occurred: "C:\\Users\\...\\AppData\\Local\\Yarn\\Cache\\v6\\npm-unbox-primitive-1.0.1-085e215625ec3162574dc8859abee78a59b14471-integrity\\node_modules\\unbox-primitive\\.yarn-metadata.json:
Unexpected token \u0000 in JSON at position 0".
info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\...\\OneDrive\\Documents\\GitHub\\wc_app\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
I have same problem with installing next.js app many times
now its fixed
with clear cache of yarn
yarn cache clean
I have faced a similar problem while creating a latest react native project(0.65) in my Windows machine:
error An unexpected error occurred: "C:\Users\arefin\AppData\Local\Yarn\Cache\v6\npm-is-ci-3.0.0-c7e7be3c9d8eef7d0fa144390bd1e4b88dc4c994-integrity\node_modules\is-ci\.yarn-metadata.json: Unexpected token \u0000 in JSON at position 0".
My system configuration for react native development is as follows:
node --version: v15.7.0
yarn --version: 1.22.5
npm --version: 7.12.1
java --version: java 15.0.2 2021-01-19
I used these commands below, which finally solved the problem in my case:
yarn init && yarn add react-native && yarn react-native init
SpendnGain
which I found at here

Expo keeps crashing with error message - dyld: Symbol not found: _FSEventStreamCreate Abort Trap 6

Expo was working fine until I did an npm install native-base --save and it keeps crashing every time I try to start it. I'm on Mac and have am using my real mobile devices to view the changes in my project.
I've uninstalled the native-base but am not sure how to replace the missing files.
Refer to error message screenshot here
Managed to find a solution for now (thanks to #brentvatne).
I updated the packages, including node:
brew update
brew upgrade node
And when I started Expo, another error came up - EMFILE: too many open files, watch at FSEvent.FSWatcher._handle.onchange
The error is caused by Watchman, to which I resolved it with:
brew install watchman

Vue3 install with _FSEventStreamCreate error

I have been using Vue2 for study and now moving to Vue3. I uninstalled Vue2 on my Mac:
npm uninstall vue-cli -g
I then installed Vue3:
npm install -g #vue/cli
I checked the vue version:
(base) Tims-iMac-Pro-4:project_one tim$ vue --version
#vue/cli 4.5.8
Created a project:
vue create project_one
cd project_one
But then get this error when attempting to run the server:
(base) Tims-iMac-Pro-4:project_one tim$ npm run serve
> project_one#0.1.0 serve /Users/tim/Google Drive/Vue Dev/Vue3_1/project_one
> vue-cli-service serve
INFO Starting development server...
10% building 2/2 modules 0 activedyld: lazy symbol binding failed: Symbol not found:
_FSEventStreamCreate
Referenced from: /Users/tim/Google Drive/Vue Dev/Vue3_1/project_one/node_modules/webpack-
dev-server/node_modules/fsevents/build/Release/fse.node
Expected in: flat namespace
dyld: Symbol not found: _FSEventStreamCreate
Referenced from: /Users/tim/Google Drive/Vue Dev/Vue3_1/project_one/node_modules/webpack-
dev-server/node_modules/fsevents/build/Release/fse.node
Expected in: flat namespace
Abort trap: 6
(base) Tims-iMac-Pro-4:project_one tim$
Still investigating what the _FSEventStreamCreate error is and what I have done incorrectly but any help would be appreciated.
In the end, I installed the latest version of Nodejs from here and it now works.
https://nodejs.org/en/

Anything related to Zurb Foundation in Node JS throws the same error

I am trying to access the template from this repository: https://github.com/zurb/foundation-sites-template
I successfully cloned the repository, but apparently, in order to get the actual sass, I need to install npm dependencies. So I ran npm install, only to get this error:
events.js:160░░░░░░⸩ ⠼ extract:interpret: sill extract interpret#1.0.4
throw er; // Unhandled 'error' event
^
Error: write after end
at writeAfterEnd (_stream_writable.js:193:12)
at PassThrough.Writable.write (_stream_writable.js:240:5)
at PassThrough.Writable.end (_stream_writable.js:477:10)
at ReadEntry.entry.on (/usr/local/lib/node_modules/npm/node_modules/pacote/lib/extract-stream.js:19:41)
at emitOne (events.js:101:20)
at ReadEntry.emit (events.js:188:7)
at ReadEntry.emit (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:296:25)
at ReadEntry.[maybeEmitEnd] (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:249:12)
at ReadEntry.end (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:162:27)
at Unpack.[consumeBody] (/usr/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:210:13)
at Unpack.[consumeChunkSub] (/usr/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:391:40)
at Unpack.[consumeChunk] (/usr/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:362:30)
at Unzip.(anonymous function).on.chunk (/usr/local/lib/node_modules/npm/node_modules/tar/lib/parse.js:291:59)
at emitOne (events.js:96:13)
at Unzip.emit (events.js:188:7)
at Unzip.emit (/usr/local/lib/node_modules/npm/node_modules/tar/node_modules/minipass/index.js:296:25)
I am using npm version 6.0.0 and node v6.11.2. Running on a mac.
After this I tried installing the foundation cli with npm install foundation-cli --global, but got the exact same error. As far as I know, I meet all the requirements as listed on the github repository, not sure what could be the problem.
Well, turns out it was either my npm or node version. I updated both to the most recent (npm 6.4.1, node v10.8.0) versions, and npm install ran fine. I suppose what can be learned here is that when dealing with zurb foundation, just try to use the latest software.

Vue.js 2.3.2 version mismatch

After running npm run watch in terminal on my php laravel project I got this error:
Module build failed: Error:
Vue packages version mismatch:
- vue#2.3.2
- vue-template-compiler#2.2.6
This may cause things to work incorrectly. Make sure to use the same version for both.
If you are using vue-loader#>=10.0, simply update vue-template-compiler.
If you are using vue-loader#<10.0 or vueify, re-installing vue-loader/vueify should bump vue-template-compiler to the latest.
I tried to run this command npm update vue-template-compiler but the error remained.
Did somebody else meet with this problem?
I found the soluiton, I had to delete the node_modules folder, after I had to run npm install then the problem is solved.