Closed
Description
Version
3.0.0-rc.3
Reproduction link
https://github.com/jaromero/vue-cli-service-error-demo
Steps to reproduce
vue create my-app
- Select any options you want and let the project be created
cd my-app && yarn run serve
(ornpm
if chosen)- Try running any vue-cli-service command, like
npx vue-cli-service serve
What is expected?
No errors; vue-cli-service should run as expected.
What is actually happening?
When vue-cli-service is run with npx, the output is simply:
Cannot read property 'replace' of null
With yarn, the output is:
yarn run v1.7.0
$ vue-cli-service serve
/home/nsdragon/test/vue-cli/my-app/node_modules/hosted-git-info/index.js:73
if (!(ex instanceof URIError)) throw ex
^
TypeError: Cannot read property 'replace' of null
at /home/nsdragon/test/vue-cli/my-app/node_modules/hosted-git-info/index.js:61:63
at Array.map (<anonymous>)
at fromUrl (/home/nsdragon/test/vue-cli/my-app/node_modules/hosted-git-info/index.js:45:39)
at Function.module.exports.fromUrl (/home/nsdragon/test/vue-cli/my-app/node_modules/hosted-git-info/index.js:32:18)
at Object.<anonymous> (/home/nsdragon/test/vue-cli/my-app/node_modules/normalize-package-data/lib/fixer.js:150:36)
at Array.forEach (<anonymous>)
at Object.<anonymous> (/home/nsdragon/test/vue-cli/my-app/node_modules/normalize-package-data/lib/fixer.js:144:31)
at Array.forEach (<anonymous>)
at Object.fixDependencies (/home/nsdragon/test/vue-cli/my-app/node_modules/normalize-package-data/lib/fixer.js:137:41)
at /home/nsdragon/test/vue-cli/my-app/node_modules/normalize-package-data/lib/normalize.js:32:38
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
(npm shows largely the same information, plus npm-specific info like this is not a problem with npm, debug log at /path/to/wherever/debug.log etc.)
Even with pnpm
(and installing dependencies with the --shamefully-flatten
flag) this fails and produces the same error as npm.
Node: 10.6.0
npm: 6.1.0
yarn: 1.7.0