alibaba / alibaba/weex

Unsupported URL Type: npm:string-width@^4.2.0

Open
#3,351 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
18.5k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

weex preview报错:
× Install fail! Error: Unsupported URL Type: npm:string-width@^4.2.0
Error: Unsupported URL Type: npm:string-width@^4.2.0
at parseUrl (C:\Users\h\.wx\core\node_modules\_npm-package-arg@4.2.1@npm-package-arg\npa.js:186:13)
at npa (C:\Users\h\.wx\core\node_modules\_npm-package-arg@4.2.1@npm-package-arg\npa.js:79:12)
at _install (C:\Users\h\.wx\core\node_modules\_npminstall@3.28.1@npminstall\lib\install.js:62:11)
at _install.next ()
at onFulfilled (C:\Users\h\.wx\core\node_modules\_co@4.6.0@co\index.js:65:19)
at C:\Users\h\.wx\core\node_modules\_co@4.6.0@co\index.js:54:5
at new Promise ()
at co (C:\Users\h\.wx\core\node_modules\_co@4.6.0@co\index.js:50:10)
at toPromise (C:\Users\h\.wx\core\node_modules\_co@4.6.0@co\index.js:118:63)
at next (C:\Users\h\.wx\core\node_modules\_co@4.6.0@co\index.js:99:29)

Contributor guide

Open the contributing guide

Research direction

Reproduce the Weex preview install on the reported Windows setup and inspect npm-package-arg/npa.js and npminstall/lib/install.js at the reported stack frames. Determine why npm:string-width@^4.2.0 is rejected and verify the fix by confirming that preview installation completes without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
mobile, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.