Npm run serve opens project Times error errno 126

problem description

npm run serve opens project Times error

the environmental background of the problems and what methods you have tried

thought it was caused by the lack of permissions in the project file. If you have given the permission, it will not work.

error message

/ / Please paste the code text below (do not replace the code with pictures)
192:happylearn-admin-html helloimyhe$ npm run serve

happylearn-admin-html@0.1.0 serve / Users/helloimyhe/Documents/happylearn-admin-html/trunk/happylearn-admin-html
vue-cli-service serve

sh: / Users/helloimyhe/Documents/happylearn-admin-html/trunk/happylearn-admin-html/node_modules/.bin/vue-cli-service: Permission denied
npm err! Code ELIFECYCLE
npm err! Errno 126
npm err! Happylearn-admin-html@0.1.0 serve: vue-cli-service serve
npm err! Exit status
npm err!
npm err! Failed at the happylearn-admin-html@0.1.0 serve 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! / Users/helloimyhe/.npm/_logs/2018-11-30T03_23_08_571Z-debug.log

debug.log

0 info it worked if it ends with ok
1 verbose cli ["/ usr/local/bin/node","/ usr/local/bin/npm", "run"," serve"]
2 info using npm@6.4.1
3 info using node@v10.14.0
4 verbose run-script ["preserve"," serve", "postserve"]
5 info lifecycle happylearn-admin-html@0.1.0~preserve: happylearn-admin-html@0.1.0
6 info lifecycle happylearn-admin-html@0.1.0~serve: happylearn-admin-html@0.1.0
7 verbose lifecycle happylearn-admin-html@0.1.0~serve: unsafe-perm in lifecycle true
8 verbose lifecycle happylearn-admin-html@0.1.0~serve: PATH: / usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin : / Users/helloimyhe/Documents/happylearn-admin-html/trunk/happylearn-admin-html/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
9 verbose lifecycle happylearn-admin-html@0.1.0~serve: CWD: / Users/helloimyhe/Documents/happylearn-admin-html/trunk/happylearn-admin-html
10 silly lifecycle happylearn-admin-html@0.1.0~serve: Args: ["- cations, "vue-cli-service serve"]
11 silly lifecycle happylearn-admin-html@0.1.0~serve: Returned: code: 126 signal: null
12 info lifecycle happylearn-admin-html@0.1.0~serve: Failed to exec serve script
13 verbose stack Error: happylearn-admin-html@0.1.0 serve: vue-cli-service serve
13 verbose stack Exit status 126
13 verbose stack at EventEmitter. (/ usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16 )
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess. (/ usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:182:13)
13 verbose stack at maybeClose (internal/child_process.js:962:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js)
14 verbose pkgid happylearn-admin-html@0.1.0
15 verbose cwd / Users/helloimyhe/Documents/happylearn-admin-html/trunk/happylearn-admin-html
16 verbose Darwin 18.2.0
17 verbose argv "/ usr/local/bin/node" / usr/local/bin/npm "run"serve"
18 verbose node v10.14.0
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 126
22 error happylearn-admin-html@0.1.0 serve: vue-cli-service serve
22 error Exit status 126
23 error Failed at the happylearn-admin-html@0.1.0 serve script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [126, true]

Dec.27,2021

the error message has prompted / Users/helloimyhe/Documents/happylearn-admin-html/trunk/happylearn-admin-html/node\ _ modules/.bin/vue-cli-service: Permission denied does not have permission;
needs to execute the command:

chmod 777 /Users/helloimyhe/Documents/happylearn-admin-html/trunk/happylearn-admin-html/node\_modules/.bin/vue-cli-service

then re-execute

npm run serve

I also encountered the same problem. On the Internet, I saw other great gods solve this problem. The solution is to create a new vue.config.js file in the root directory with
`module.exports = {

.
devServer: {
    clientLogLevel: 'info'
}

}; `
attach the link to the original web page: https://github.com/vuejs/vue-.

Menu