Sign Up
Go Pro Sign Up Login

Buy Now and unlock this series

$

49

.99

yours forever

Become a Pro and unlock everything

$

24

.99

per month

Static Site Generation and Adapters

Here we will look at adding an adapter and building what we have so that we can get it ready to deploy and be hosted.

npx ncu -i
npm install --save-dev @sveltejs/adapter-static@next
npm run build

Downloads

Become a pro to download code and videos

Comments

User avatar

Raul

about 1 month ago

@I can't continue from here Please try this: npm install --save-dev @sveltejs/adapter-static@next

User avatar

I can't continue from here

about 1 month ago

Hi, it gives me this error when I do the npm command:

$ npm install —save-dev @sveltejs/adapter-static@next 1 ↵ npm ERR! arg Argument starts with non-ascii dash, this is probably invalid: —save-dev npm ERR! code EINVALIDTAGNAME npm ERR! Invalid tag name "—save-dev": Tags may not have any characters that encodeURIComponent encodes.

Joe Astuccio

3 months ago [edited]

Thanks @Raul! I should have posted my solution. I installed "npm-check-updates" globally first.

npm install -g npm-check-updates

User avatar

Raul

3 months ago

@Joe Astuccio I can replicate your issue! An alternative is to install the correct one locally instead of running it with npx

Joe Astuccio

3 months ago

I am getting an issue with npx ncu -i That command returns National Central University Taiwan's weather info instead of npm-check-updates package.

https://www.npmjs.com/package/ncu-weather https://www.npmjs.com/package/npm-check-updates

Want to join the conversation?

Become a Pro member today!