:wave: Hi there! Found my way here while trying to...
# help
p
👋 Hi there! Found my way here while trying to upgrade a projects version of sst. I spent a fair bit of time running into npm versioning issues but I think I have them resolved (at least, I've updated to v0.69.3, went through the upgrade instructions for v0.59.0 and now I can run
sst build
on my machine). However when I try and run
npm install
(as happens when I try and push to seed) I get the following error:
Invalid package name "@aws-cdk-lib": name can only contain URL-friendly characters
and when I change @aws-cdk-lib to aws-cdk-lib in our package.json file, I get the following error:
Copy code
npm ERR! code ETARGET
npm ERR! notarget No matching version found for aws-cdk-lib@1.61.0.
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 'infrastructure'
npm ERR! notarget
I feel like I'm almost there, but google is turning up nothing. Any advice would be much appreciated!
f
Hey @Peter Slattery, can u show me what ur
package.json
looks like?
p
Yep one sec
oh, this is it after I removed the
@
from aws-cdk-lib
f
Change
"aws-cdk-lib": "1.61.0",
to
"aws-cdk-lib": "2.15.0",
run
npm/yarn install
and then give it a try again
p
ok, trying that. ty
and just out of curiosity (I'm still finding my way around sst docs) where should I have looked to find that info?
f
Running
sst update 0.69.3
should printed out a warning.
p
Ok great. It seems like this worked - I was able to run
npm install
and
sst build
ok. Thanks again!