miztroh-zz / wysiwyg-e

A what-you-see-is-what-you-get editor created with Polymer
85 stars 18 forks source link

No matching version found for @polymer/polymer@preview #223

Closed lastmjs closed 6 years ago

lastmjs commented 6 years ago

I try to npm install wysiwyg-e and I get the following:

[lastmjs@lastmjs prendus-question-elements]$ npm install wysiwyg-e
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @polymer/polymer@preview
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget 
npm ERR! notarget It was specified as a dependency of '@polymer/app-localize-behavior'
npm ERR! notarget 
lastmjs commented 6 years ago

I'm not sure what the issue is, a cursory glance at @polymer/app-localize-behavior's 3.0 preview branch seems to have a correct package.json: https://github.com/PolymerElements/app-localize-behavior/blob/__auto_generated_3.0_preview/package.json

miztroh-zz commented 6 years ago

My guess here is that I haven't updated the npm package in a long while. I'll see if I can push a new build based on the 3.0-preview branch.

miztroh-zz commented 6 years ago

Are you using yarn at all? Not sure if npm can pull deps from GitHub, but I know the following works as a yarn dep:

"wysiwyg-e": "https://github.com/miztroh/wysiwyg-e#3.0-preview"
lastmjs commented 6 years ago

npm can pull deps from GitHub, but it doesn't work for that URL:

[lastmjs@lastmjs prendus-question-elements]$ npm install https://github.com/miztroh/wysiwyg-e.git#3.0-preview
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git checkout ^2.3.1
npm ERR! error: pathspec '^2.3.1' did not match any file(s) known to git.
npm ERR! 
lastmjs commented 6 years ago

This line needs to be changed in the package.json:

"web-animations-js": "https://github.com/web-animations/web-animations-js.git#^2.3.1"

The ^2.3.1 causes the npm error, the ^ in particular.

miztroh-zz commented 6 years ago

What is it supposed to be changed to in order to target that specific release?