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.
13 verbose stack at EventEmitter.emit (events.js:182:13)
13 verbose stack at ChildProcess.
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]