Skip to content
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

Multiple node-gyp errors when starting a new solid-start project - seems to be related to node_modules/@parcel/watcher #1310

Closed
2 tasks done
componentscience opened this issue Feb 6, 2024 · 6 comments
Labels
bug Something isn't working vinxi related to vinxi

Comments

@componentscience
Copy link

componentscience commented Feb 6, 2024

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

Multiple node/gyp errors seemingly related to node_modules/@parcel/watcher when running 'npm install' in a new solid-start project.

$ npm init solid@latest
$ cd my-app
$ npm install

Install options:
basic
SSR yes
Typescript yes

Output:

[host@myhost site]$ npm install

npm ERR! code 1
npm ERR! path /home/host/site/node_modules/@parcel/watcher
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.11.6 found at "/sbin/python3"
npm ERR! gyp info spawn /sbin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/home/host/.nvm/versions/node/v20.11.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/host/site/node_modules/@parcel/watcher/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/host/.nvm/versions/node/v20.11.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/home/host/.cache/node-gyp/20.11.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/home/host/.cache/node-gyp/20.11.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/home/host/.nvm/versions/node/v20.11.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/home/host/.cache/node-gyp/20.11.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/host/site/node_modules/@parcel/watcher',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp: binding.gyp not found (cwd: /home/host/site/node_modules/@parcel/watcher) while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: gyp failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess. (/home/host/.nvm/versions/node/v20.11.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:271:18)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:518:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm ERR! gyp ERR! System Linux 6.7.3-arch1-1
npm ERR! gyp ERR! command "/home/host/.nvm/versions/node/v20.11.0/bin/node" "/home/host/.nvm/versions/node/v20.11.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /home/host/site/node_modules/@parcel/watcher
npm ERR! gyp ERR! node -v v20.11.0
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /home/host/.npm/_logs/2024-02-05T14_27_16_860Z-debug-0.log

Expected behavior 🤔

Complete 'npm install' when creating a new solid-start project.

Steps to reproduce 🕹

Steps:

  1. $ npm init solid@latest
  2. $ cd my-app
  3. $ npm install

Install options:
basic
SSR yes
Typescript yes

Context 🔦

No response

Your environment 🌎

$ node –version
v20.11.0
$ node-gyp –version
v10.0.1
$ npm –version
10.4.0
$ uname -a
Linux 6.7.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 01 Feb 2024 10:30:35 +0000 x86_64 GNU/Linux
@componentscience componentscience added the bug Something isn't working label Feb 6, 2024
@lxsmnsyc
Copy link
Member

lxsmnsyc commented Feb 6, 2024

why was there a Parcel

@componentscience componentscience changed the title Multiple errors related to parcel when starting a new solid-start project: npm ERR gyp ERR Multiple node-gyp errors when starting a new solid-start project - seems to be related to node_modules/@parcel/watcher Feb 6, 2024
@componentscience
Copy link
Author

componentscience commented Feb 6, 2024

@lxsmnsyc @parcel/watcher was referenced based on the error output. I edited the title to hopefully make it more intuitive.

@darrenswhite
Copy link

adding this into package.json worked for me:

  "overrides": {
    "@parcel/watcher": "2.1.0"
  }

@ryansolid
Copy link
Member

Hmm it looks like @vinxi/[email protected] uses @parcel/watcher. That being said if a version issue is happening that is upstream. I haven't seen this issue and I don't imagine it is related to our package locks. It looks like the current version we install for @parcel/watcher is 2.4.0

Looking further I see certain combinations seem to be having some issues with npm/node versions. parcel-bundler/watcher#156

I don't think there is much for us to do here. If Vinxi needs to reconsider libraries I suppose we could look that but it seems that there are some challenges with this package.

@ryansolid ryansolid added the vinxi related to vinxi label Feb 12, 2024
@devongovett
Copy link

Please try @parcel/watcher v2.4.1, which should fix this issue with npm 10.4.0. See parcel-bundler/watcher#156 (comment) for details.

@nksaraf
Copy link
Member

nksaraf commented Mar 2, 2024

Closing in favor or @devongovett's comment (#1310 (comment)). If its still an issue, reopen this.

@nksaraf nksaraf closed this as completed Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vinxi related to vinxi
Projects
None yet
Development

No branches or pull requests

6 participants