hls.js icon indicating copy to clipboard operation
hls.js copied to clipboard

Cannot install from npm

Open ricksmith26 opened this issue 5 years ago • 5 comments

What version of Hls.js are you using?

[email protected]

What browser and OS are you using?

Chrome

Test stream:

npm ERR! code EINVALIDPACKAGENAME npm ERR! Invalid package name "[email protected]": name can only contain URL-friendly characters

Checklist

  • [x] The issue observed is not already reported by searching on Github under https://github.com/video-dev/hls.js/issues
  • [] The issue occurs in the stable client on https://hls-js.netlify.com/demo and not just on my page
  • [ ] The issue occurs in the latest client on https://hls-js-dev.netlify.com/demo and not just on my page
  • [ ] The stream has correct Access-Control-Allow-Origin headers (CORS)
  • [ ] There are no network errors such as 404s in the browser console when trying to play the stream

Steps to reproduce

simply run npm i [email protected] or npm i hls.j

Expected behavior

module should install

Actual behavior

npm ERR! code EINVALIDPACKAGENAME npm ERR! Invalid package name "[email protected]": name can only contain URL-friendly characters

Console output

npm ERR! code EINVALIDPACKAGENAME npm ERR! Invalid package name "[email protected]": name can only contain URL-friendly characters

Paste the contents of the browser console here.
For media errors reported on Chrome browser, please also paste the output of chrome://media-internals

ricksmith26 avatar Mar 08 '21 14:03 ricksmith26

What version of npm are you using?

Have you tried hls.js@canary or hls.js@rc ?

robwalch avatar Mar 08 '21 15:03 robwalch

I have been trying in install with npm i [email protected] but have also just tried hls.js@canary or hls.js@rc and neither have worked. I am currently using node v 10.14.3

ricksmith26 avatar Mar 09 '21 09:03 ricksmith26

I have the same problem. This is my error log.

0 verbose cli [
0 verbose cli   'D:\\node\\node.exe',
0 verbose cli   'C:\\Users\\tvp100\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli   'i',
0 verbose cli   'hls.js'
0 verbose cli ]
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:C:\Users\tvp100\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 4ms
6 timing config:load:builtin Completed in 4ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:D:\xxxxxxxxx\ReactWorkPlace\mtv-font\.npmrc Completed in 1ms
10 timing config:load:project Completed in 3ms
11 timing config:load:file:C:\Users\tvp100\.npmrc Completed in 1ms
12 timing config:load:user Completed in 1ms
13 timing config:load:file:C:\Users\tvp100\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:validate Completed in 2ms
16 timing config:load:credentials Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 15ms
19 timing npm:load:configload Completed in 15ms
20 timing npm:load:setTitle Completed in 0ms
21 timing npm:load:setupLog Completed in 1ms
22 timing config:load:flatten Completed in 3ms
23 timing npm:load:cleanupLog Completed in 2ms
24 timing npm:load:configScope Completed in 0ms
25 timing npm:load:projectScope Completed in 2ms
26 timing npm:load Completed in 25ms
27 timing arborist:ctor Completed in 1ms
28 timing idealTree:init Completed in 1205ms
29 timing idealTree:userRequests Completed in 4ms
30 silly idealTree buildDeps
31 silly fetch manifest hls.js@*
32 timing arborist:ctor Completed in 0ms
33 timing npm Completed in 8004ms
34 verbose unfinished npm timer command:install 1637725810145
35 verbose unfinished npm timer reify 1637725810147
36 verbose unfinished npm timer reify:loadTrees 1637725810155
37 verbose unfinished npm timer idealTree 1637725810155
38 verbose unfinished npm timer idealTree:buildDeps 1637725811365
39 verbose unfinished npm timer idealTree:#root 1637725811366
40 info ok
41 error Exit handler never called!
42 error This is an error with npm itself. Please report this error at:
43 error <https://github.com/npm/cli/issues>

And this is my Package.json

{
  "name": "mtv-font",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@craco/craco": "^6.4.0",
    "@heroicons/react": "^1.0.5",
    "@testing-library/jest-dom": "^5.15.0",
    "@testing-library/react": "^11.2.7",
    "@testing-library/user-event": "^12.8.3",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-router-dom": "^6.0.2",
    "react-scripts": "4.0.3",
    "tailwindcss-cli": "^0.1.2",
    "web-vitals": "^1.1.2"
  },
  "scripts": {
    "start": "craco  start",
    "build": "craco  build",
    "test": "craco  test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "autoprefixer": "^9.8.8",
    "postcss": "^7.0.39",
    "tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17"
  }
}

Please help me.

tvp100 avatar Nov 24 '21 04:11 tvp100

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Apr 17 '22 17:04 stale[bot]

This issue has been automatically closed because it has not had recent activity. If this issue is still valid, please ping a maintainer and ask them to label it accordingly.

stale[bot] avatar Apr 29 '22 11:04 stale[bot]