npx vue-cli-service not found - vuejs2

Run npx vue-cli-service build on a new docker container.
Gets error:
npm ERR! code E404 npm ERR! 404 Not Found - GET
https://registry.npmjs.org/vue-cli-service - Not found.
Could somebody tell me what happened to vue-cli-service?

Related

I can't run vue project with Nuxt Fatal Error

When I run npm start I am getting an error.
FATAL No build files found in ..\client\.nuxt\dist\server. Use either `nuxt build` or `builder.build()` or start nuxt in development mode.
Use either `nuxt build` or `builder.build()` or start nuxt in development mode.
at VueRenderer._ready (node_modules\#nuxt\vue-renderer\dist\vue-renderer.js:758:13)
at async Server.ready (node_modules\#nuxt\server\dist\server.js:637:5)
at async Nuxt._init (node_modules\#nuxt\core\dist\core.js:482:7)
Nuxt Fatal Error
Error: No build files found in ..\client\.nuxt\dist\server.
Use either `nuxt build` or `builder.build()` or start nuxt in development mode.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client#1.0.0 start: `nuxt start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client#1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Vue version is #vue/cli 4.5.13.
I am vue.js beginner. What is reason? How can I fix it?
Thank you.
try npm run build after that you can use npm start.
alternatively, if you are developing and are not in production use npm run dev.

nextjs Build failed because of webpack errors on CentOS 7

I want to deploy a nextjs application on a centos server. But when i try to build using npm run build it gives me the following error
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist#latest --update-db
info - Creating an optimized production build
Failed to compile.
ModuleNotFoundError: Module not found: Error: Can't resolve '../context/auth/AuthState' in '/var/www/html/projectname/pages'
> Build error occurred
Error: > Build failed because of webpack errors
at build (/var/www/html/projectname/node_modules/next/dist/build/index.js:15:918)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client-ubii-app#0.1.0 build: `next build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client-ubii-app#0.1.0 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! /root/.npm/_logs/2021-03-31T21_10_01_066Z-debug.log
But when i do the same on my local machine runnig windows 10 it works fine
If you has been change in name of file or folder only case sensitive character, this problem may be happen if your remote branch is not updated. Please, make sure if remote branch has the old name of file or folder. If true, fix it because the CentOs is Linux, so file and folder with same words in lower case is different with upper case.

Vuepress Build and Deploy Github Actions "ELIFECYCLE" error permission denied for 'build vuepress'

Trying to use the instructions at https://learn.microsoft.com/en-us/azure/static-web-apps/publish-vuepress to build and deploy a basic vuepress app via Github actions. However, it fails in the "Build and Deploy" script throwing out the following error. The project builds fine on my local machine. Any idea how to mitigate this issue?
Running 'npm run build'...
> static-site#1.0.0 build /github/workspace
> vuepress build
sh: 1: vuepress: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! static-site#1.0.0 build: `vuepress build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the static-site#1.0.0 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! /github/home/.npm/_logs/2020-08-21T20_28_37_948Z-debug.log
---End of Oryx build logs---
Oryx has failed to build the solution.
For further information, please visit the Azure Static Web Apps documentation at https://learn.microsoft.com/en-us/azure/static-web-apps/
If you believe this behavior is unexpected, please raise a Github issue at https://github.com/azure/static-web-apps/issues/
Exiting

error while running "npm run build" in vue application

I have cloned vue application from git hub(https://github.com/jimmerioles/progressive-weather-app), for automating the deployment in jenkins. Before doing it, i am checking in my ubuntu machine(GCP vm). There i have installed java,nodejs, npm and vuecli. When i execute a command "npm run build" getting the below error. I tried re-installing vuecli, nodejs and npm also., still getting the same error. Kindly let me know how can i fix this.
npm version is "6.2.0", nodejs version is "v14.3.0" and vuecli is a latest one.
root#instance-2:~/weather/src# npm run build
> PWeatherApp#0.1.0 build /root/weather
> vue-cli-service build
sh: 1: vue-cli-service: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! PWeatherApp#0.1.0 build: `vue-cli-service build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the PWeatherApp#0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-05-23T18_32_20_092Z-debug.log
its may help you:
npm install -g #vue/cli
# OR
yarn global add #vue/cli

npm install -g working fine, npm install throwing error "npm ERR! 404 Not Found - GET http://registry.npmjs.org/storybook__addon-knobs - Not found"

npm install -g working fine, all the modules for the same package.json is getting installed.
npm install is throwing error for the same package.json. below is the error
npm ERR! 404 Not Found - GET http://registry.npmjs.org/storybook__addon-knobs - Not found