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

fix: make vue-loader-v16 an optional dependency, avoid crashing npm 5 #5718

Merged
merged 1 commit into from Jul 29, 2020

Conversation

sodatea
Copy link
Member

@sodatea sodatea commented Jul 27, 2020

fixes #5715

What kind of change does this PR introduce?* (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

@sodatea sodatea merged commit 57f4184 into vuejs:dev Jul 29, 2020
@sodatea sodatea deleted the fix-npm-5-compat branch July 29, 2020 05:48
@aa6my
Copy link

aa6my commented Aug 13, 2020

image

Hi,

Stuck at amplify installation

Error: Cannot find module 'vue-loader-v16/package.json'

p/s - using vue 3 & babel

@aa6my
Copy link

aa6my commented Aug 13, 2020

Hi,

Stuck at amplify installation

Error: Cannot find module 'vue-loader-v16/package.json'

p/s - using vue 3 & babel

temporary fixed npm install "vue-loader-v16@npm:vue-loader@v16.0.0-alpha.3"

@justyeh
Copy link

justyeh commented Aug 17, 2020

Hi,
Stuck at amplify installation
Error: Cannot find module 'vue-loader-v16/package.json'
p/s - using vue 3 & babel

temporary fixed npm install "vue-loader-v16@npm:vue-loader@v16.0.0-alpha.3"

I ran into the same problem, but the temporary method did not work

npm ERR! Invalid dependency type requested: alias

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\54657645\AppData\Roaming\npm-cache\_logs\2020-08-17T07_15_51_509Z-debug.log

@sodatea
Copy link
Member Author

sodatea commented Aug 17, 2020

Please use npm >= 6.9 and avoid adding the --no-optional flag.

@justyeh
Copy link

justyeh commented Aug 17, 2020

Please use npm >= 6.9 and avoid adding the --no-optional flag.

Problem solved, thank you

@thetnaingtn
Copy link

thetnaingtn commented Oct 17, 2020

Same problem here.
I updated npm to 6.14.8 but still have problems.
Temporary fixed with npm install --save-dev vue-loader-v16.
can somebody give me any idea or help?
Thanks in advance

@doradsoft
Copy link

Same problem here.
I updated npm to 6.14.8 but still have problems.
Temporary fixed with npm install --save-dev vue-loader-v16.
can somebody give me any idea or help?
Thanks in advance

Same here. @sodatea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

verson 4.5.0 dosen't suport npm5.6.0
5 participants