After working on this project for about four months, everything seems fine in the development version. However, once I build the project and upload it to the server, some of my styles are not applied.
For more information, I have imported styles both in components.
<style>
</style>
And assets css file.
assets\css\style.css
I am not sure if what I did is right or wrong?
The first time I type npm run build
in VS Code terminal, I encounter this error:
First time npm run build
**✖ Nuxt Fatal Error**
Error: EPERM: operation not permitted, mkdir
'C:\Users\rsh\folder\project\.nuxt\components'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d4b9ada4a6bbbeb1b7a094e5fae4fae4">[email protected]</a> build: `nuxt build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e78a9e9795888d828493a7d6c9d7c9d7">[email protected]</a> build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\rsh\AppData\Roaming\npm-cache\_logs\2022-01-17T10_43_05_599Z-debug.log
However, after the second attempt, the project builds with some warnings.
When it is built after the second try
npm run build
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
fonts/materialdesignicons-webfont.b26c938.eot (550 KiB)
fonts/materialdesignicons-webfont.3073b3f.woff (265 KiB)
fonts/materialdesignicons-webfont.bfd0d90.ttf (550 KiB)
fonts/icofont.9c33516.woff2 (525 KiB)
fonts/icofont.dad3acc.woff (630 KiB)
img/signin.1455693.svg (846 KiB)
6871893.js (376 KiB)
f031b5e.js (369 KiB)
bc52125.js (376 KiB)
0a7bf8a.js (371 KiB)
20d9dc3.js (673 KiB)
4ab266a.js (401 KiB)
5e1927c.js (1.35 MiB)
6796184.js (2.52 MiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (1000 KiB). This can impact web performance.
Entrypoints:
app (3.42 MiB)
7f9ae0b.js
4fe44c5.js
6796184.js
20d9dc3.js
After
npm run build
ERROR Failed to compile with 3 errors friendly-errors 14:13:07
ERROR in ./.nuxt/views/app.template.html friendly-errors 14:13:07
Module build failed (from ./node_modules/html-webpack-plugin /lib/loader.js): friendly-errors 14:13:07
Error: ENOENT: no such file or directory, open 'C:\Users \rsh\project1\.nuxt\views\app.template.html'
friendly-errors 14:13:07
ERROR in ./.nuxt/client.js friendly-errors 14:13:07
Module build failed (from ./node_modules/babel-loader/lib/index.js): friendly-errors 14:13:07
Error: ENOENT: no such file or directory, open 'C:\Users\rsh\project1\.nuxt\client.js'
friendly-errors 14:13:07
@ multi ./node_modules/eventsource-polyfill/dist/browserify- eventsource.js (webpack)-hot-middleware/client.js?reload=true&timeout=30000& ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client ./.nuxt/client.js
friendly-errors 14:13:07
error
Whenever I type nuxt build
in the VS Code terminal,
I encounter this error:
With nuxt build
nuxt : The term 'nuxt' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ nuxt build
+ ~~~~
+ CategoryInfo : ObjectNotFound: (nuxt:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I would truly appreciate any help or shared experiences regarding this matter.