Skip to main content
Avid Contributor I
December 22, 2021

Web Browser Control for Sonos, how to start it?

  • December 22, 2021
  • 6 replies
  • 446 views

I found this 

 

 

And I have followed the instruction on how to go about it..

installed npm and 2FA then gone to terminal and

 

sudo npm install -g sonos-web-cli

 

then npm audit fix --force

 

and searched the instruction on what to do next..

 

Seems I missed out a step.  but still, using the commands the commands in terminal even with sudo I cannot get an instal that does not fail

 

Not sure what other info to supply at the moment so will leave it at that , until someone can let me know what they need to know to help me.

Install log from npm included below

 

 

 

 

    This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

    6 replies

    npaisnelAuthor
    Avid Contributor I
    December 22, 2021

    Ah well.. can't include the install log as it exceeds the 3000 character limit..and there does not seem to be a way in this form to attach a text log file..

     

    hmmm

    npaisnelAuthor
    Avid Contributor I
    December 22, 2021
    MACPRO:~ neil$ sudo sonos-web install
    Installing Sonos Web
    ✔ downloading installation files
    ✖ installing front-end dependencies
    error installation failed...check /Users/neil/.sonos-web/install.log for more details
    MACPRO:~ neil$

    I get the above, but on checking the install log..it is empty

    I can try both 

    sonos-web install

    or

    sudo sonos-web install

    neither has any success and neither populates the install.log file

     

     

    npaisnelAuthor
    Avid Contributor I
    December 22, 2021
    ACPRO:~ neil$ npm install -g sonos-web-cli
    npm ERR! code EACCES
    npm ERR! syscall rename
    npm ERR! path /usr/local/lib/node_modules/sonos-web-cli
    npm ERR! dest /usr/local/lib/node_modules/.sonos-web-cli-im0fFRGL
    npm ERR! errno -13
    npm ERR! Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/sonos-web-cli' -> '/usr/local/lib/node_modules/.sonos-web-cli-im0fFRGL'
    npm ERR! [Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/sonos-web-cli' -> '/usr/local/lib/node_modules/.sonos-web-cli-im0fFRGL'] {
    npm ERR! errno: -13,
    npm ERR! code: 'EACCES',
    npm ERR! syscall: 'rename',
    npm ERR! path: '/usr/local/lib/node_modules/sonos-web-cli',
    npm ERR! dest: '/usr/local/lib/node_modules/.sonos-web-cli-im0fFRGL'
    npm ERR! }
    npm ERR!
    npm ERR! The operation was rejected by your operating system.
    npm ERR! It is likely you do not have the permissions to access this file as the current user
    npm ERR!
    npm ERR! If you believe this might be a permissions issue, please double-check the
    npm ERR! permissions of the file and its containing directories, or try running
    npm ERR! the command again as root/Administrator.

    npm ERR! A complete log of this run can be found in:
    npm ERR! /Users/neil/.npm/_logs/2021-12-22T14_56_59_329Z-debug.log
    MACPRO:~ neil$

     

    npaisnelAuthor
    Avid Contributor I
    December 22, 2021

    the errors start in the debug log at

     

    Have tried as sudo and as normal user.  same result each time

     

     

    1470 verbose stack Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/sonos-web-cli' -> '/usr/local/lib/node_modules/.sonos-web-cli-im0fFRGL'
    1471 verbose cwd /Users/neil
    1472 verbose Darwin 18.7.0
    1473 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "sonos-web-cli"
    1474 verbose node v16.13.1
    1475 verbose npm v8.1.2
    1476 error code EACCES
    1477 error syscall rename
    1478 error path /usr/local/lib/node_modules/sonos-web-cli
    1479 error dest /usr/local/lib/node_modules/.sonos-web-cli-im0fFRGL
    1480 error errno -13
    1481 error Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/sonos-web-cli' -> '/usr/local/lib/node_modules/.sonos-web-cli-im0fFRGL'
    1481 error [Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/sonos-web-cli' -> '/usr/local/lib/node_modules/.sonos-web-cli-im0fFRGL'] {
    1481 error errno: -13,
    1481 error code: 'EACCES',
    1481 error syscall: 'rename',
    1481 error path: '/usr/local/lib/node_modules/sonos-web-cli',
    1481 error dest: '/usr/local/lib/node_modules/.sonos-web-cli-im0fFRGL'
    1481 error }
    1482 error The operation was rejected by your operating system.
    1482 error It is likely you do not have the permissions to access this file as the current user
    1482 error
    1482 error If you believe this might be a permissions issue, please double-check the
    1482 error permissions of the file and its containing directories, or try running
    1482 error the command again as root/Administrator.
    1483 verbose exit -13

    line 1470

     

     

    Airgetlam
    December 22, 2021

    That’s a two year old thread, and software written by a user, not Sonos. It is entirely possible the person who wrote that code has not maintained it. 

    Bruce
    npaisnelAuthor
    Avid Contributor I
    December 22, 2021

    Yep, always possible. 

    As it was an oldish thread I though better to create new one...to avoid being accused of reserutinbg a new thread. 
    yes aware that it is not a Sonos product.