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

NPM issue #1981

Open
Kukindoo opened this issue Jun 13, 2024 · 3 comments
Open

NPM issue #1981

Kukindoo opened this issue Jun 13, 2024 · 3 comments

Comments

@Kukindoo
Copy link

Kukindoo commented Jun 13, 2024

When I run vagrant

Versions

  • Vagrant: Vagrant 2.4.1
  • Provider: Virtualbox 7.0.12
  • Homestead: 14.0.2

Host operating system

Windows 10

Homestead.yaml

---
ip: "192.168.56.56"
memory: 4096
cpus: 4
provider: virtualbox
version: 14.0.2

authorize: ~/.ssh/id_rsa.pub

keys:
  - ~/.ssh/id_rsa

folders:
    - map: C:\Users\user\A_codes\dev\laravel-10-website
      to: /home/vagrant/code/mrams
    - map: C:\Users\user\A_codes\dev\csu_automation\csu_website
      to: /home/vagrant/code/csu
    - map: C:\Users\user\A_codes\dev\laravel-11-website\pmmrc
      to: /home/vagrant/code/pmmrc

sites:
  - map: mrams.test
    to: /home/vagrant/code/mrams/public
    php: "8.1"
  - map: csu.test
    to: /home/vagrant/code/csu/public
    php: "8.1"
  - map: pmmrc.test
    to: /home/vagrant/code/pmmrc/public
    php: "8.2"

databases:
    - mrams
    - csu
    - pmmrc

features:
  - mariadb: false
  - postgresql: false
  - ohmyzsh: false
  - webdriver: false

services:
    - enabled:
          - "mysql"
#    - disabled:
#        - "postgresql@11-main"

ports:
   - send: 33060 # MySQL/MariaDB
     to: 3306
#    - send: 4040
#      to: 4040
#    - send: 54320 # PostgreSQL
#      to: 5432
   - send: 8025 # Mailhog
     to: 8025
#    - send: 9600
#      to: 9600
#    - send: 27017
#      to: 27017

Expected behavior

npm installing the packages

Actual behavior

vagrant@homestead:~/code/pmmrc$ npm run build
npm ERR! code ENOTSUP
npm ERR! syscall read
npm ERR! errno -95
npm ERR! Could not read package.json: Error: ENOTSUP: operation not supported on socket, read

vagrant@homestead:~/code/pmmrc$ sudo npm install
npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "path" argument must be of type string or an instance of Buffer or URL. Received null

npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-06-13T00_23_22_908Z-debug-0.log

Steps to reproduce

  1. Vagrant up & vagrant ssh
  2. cd into pmmrc folder
  3. Follow livewire path of https://jetstream.laravel.com/installation.html installation in pmmrc folder
  4. When php artisan jetstream:install livewire, then npm ERR! code ENOTSUP happens.
@skeeith
Copy link
Contributor

skeeith commented Aug 16, 2024

@Kukindoo has this been resolved? or have you tried reinstalling homestead?

@dualznz
Copy link

dualznz commented Oct 8, 2024

you need to run npm outside of vagrant so in your command prompt goto the laravel folder then you can run npm install that will ensure that npm is installed

@Kukindoo
Copy link
Author

Yes. I have installed/reinstalled homestead on various machines, and my co-workers attempted this as well, with the same result.

We used homestead as all-in-one solution, as some of the machines do not have npm installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants