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

[JS Bug]: Error when trying to run "npm install" in javascript/21.react-media-template #194

Closed
1 task done
lschutze opened this issue Nov 18, 2022 · 5 comments · Fixed by #200
Closed
1 task done
Labels
bug Something isn't working new submission Issues that have been filed and not yet processed by DRI

Comments

@lschutze
Copy link

Please review FAQ and Known issues before filing a new item!

  • I have reviewed the FAQ and known issues and did not find my topic

Please note: any submissions with insufficient reproducible information will be marked as 'Waiting for customer input' and may be closed is there is no response

When trying to run npm install, got a npm login error.
image

After login, when trying again to run npm install, got:
image

To Reproduce

  1. Go to samples/javascript/21.react-media-template
  2. Run on npm install
  3. See the first error described
  4. Run npm login to login in npm
  5. Run npm install
  6. See the second error described
  • OS: Windows 10
  • Browser Chrome
  • Version 107
@lschutze lschutze added bug Something isn't working new submission Issues that have been filed and not yet processed by DRI labels Nov 18, 2022
@jlongo-encora
Copy link

jlongo-encora commented Nov 18, 2022

I'm experiencing the same issue:

~/live-share-sdk/samples/javascript/21.react-media-template$ npm install
npm ERR! code E401
npm ERR! Unable to authenticate, your authentication token seems to be invalid.
npm ERR! To correct this please trying logging in again with:
npm ERR!     npm login

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/jlongo/.npm/_logs/2022-11-18T18_18_22_074Z-debug-0.log

OS: Ubuntu 20.04.5 LTS
Node: v16.18.1
NPM: 8.19.2

@lschutze
Copy link
Author

Just follow these Build Packages & Samples instructions in main page README.

@lschutze lschutze reopened this Nov 21, 2022
@lschutze
Copy link
Author

I think it might be a good action to adjust the samples documentation to prevent people from getting this error.

@davrous
Copy link

davrous commented Nov 24, 2022

I had the same issue (I didn't with previous versions). I had to npm login and then delete .nvmrc and package-lock.json files. Then "npm install" worked.

The main doc: https://learn.microsoft.com/en-us/microsoftteams/platform/apps-in-teams-meetings/teams-live-share-quick-start is then broken and should be fixed.

@ryanbliss
Copy link
Contributor

#200 will fix this issue hopefully. Thanks for calling this out! Some references to a private npm feed got included in our sample package-lock files by accident and resetting the package-lock files exposed some other minor issues as well. Hopefully we'll get this merged soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new submission Issues that have been filed and not yet processed by DRI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants