-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install on NodeJS 20 and npm 10.4.0 #5787
Comments
Same bug here on node 20.10.0 :
|
OS: macOS 14.4
CPU: (12) arm64 Apple M3 Pro
Shell: /bin/zsh
node: 21.6.2
npm: 10.2.4
nativescript: 8.6.6-next-02-23-2024-8019050415
# ios
xcode: 15.2/15C500b
cocoapods: 1.15.2
python: Not Found
python3: 3.9.6
ruby: 2.7.8
platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- visionOS 1.0
- watchOS 10.2 No issues on node 21.6.2 here. I have seen others having issues with npm why fsevents
[email protected] optional
node_modules/fsevents
optional fsevents@"~2.3.2" from [email protected]
node_modules/chokidar
chokidar@"3.5.3" from the root project
chokidar@"*" from @types/[email protected]
node_modules/@types/chokidar
dev @types/chokidar@"2.1.3" from the root project
chokidar@"3.5.3" from [email protected]
node_modules/mocha
dev mocha@"10.2.0" from the root project
chokidar@"^3.5.2" from [email protected]
node_modules/nodemon |
I'm having the same problem of not being able to install on Ubuntu 22.04 Node: v20.11.1 Error: |
I have the same Problem on a MacBook Pro M2: % node -v % npm -v
|
See if this helps? nodejs/node-gyp#2992 (comment) All of the errors above seem to have the Homebrew Python in common. Maybe the system python would work better - you could also try uninstalling the brew python and try again. We're likely going to simplify setup and not require python explicitly anymore soon (since it ships with xCode, we can likely use that one where python is needed in the runtime/metadata-generator) |
I could not uninstall python from homebrew, because it is required by other packages like Podman. Only using |
I do have the same problem, no matter what I have done (with brew installed python or native python from mac), It did not solve the problem. Strangely enough, the node-gyp is trying some thing which does not exists: gyp: binding.gyp not found (cwd: /Users//.nvm/versions/node/v21.7.1/lib/node_modules/nativescript/node_modules/fsevents) while trying to load binding.gyp Apple M3 Max with Sonomo 14.4.1 |
Seems like homebrew actually broke something with python. You can use |
it did not work, still getting the same error NODE_GYP_FORCE_PYTHON=/Users/<username>/myenv/bin/python npm i -g nativescript
same applies when I use the system-wide python:
|
FYI, I have completely removed brew installed python and used only system-wide provided python, it did not work ... |
Downgrading npm to 10.3.0 worked for me ( after installing node 18.20) |
Downgrading to [email protected] while using [email protected] worked for me. |
The thing that worked for me was using yarn instead of npm. yarn global add nativescript |
Please see NativeScript/NativeScript#10509 |
Hello, |
Hello, downgrading |
The issue is indeed fixed. |
Issue Description
I am trying to update to NodeJS 20
on macOS Sonoma 14.3 I have a NodeJS installation managed with nvm
results in
Note that the same works on npm
10.2.4
(which comes out-of-the-box with NodeJS 20.11.0) and also works on npm10.3.0
, so it's something isolated to (or starting from) npm version10.3.4
Reproduction
No response
Relevant log output (if applicable)
Environment
Dependencies
Please accept these terms
The text was updated successfully, but these errors were encountered: