-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
npm ERR! code ELIFECYCLE in using NPM RUN SERVE in running PWA Vue.JS 3 Template App on Mac #2596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I assume that means you chose to install the PWA plugin during project creation? What other options did you choose? You don't provide any details that would allow us to reproduce your scenario. |
I am running into similar problems. I can run the I created a test project using the default presets, and runs
|
It seems that EventEmitter is running into some issues. This is probably caused by some upstream changes, since I was able to run the script fine a week or so earlier, and I probably updated something in the mean time. |
Yes, @LinusBorg I included the pwa template during the project creation. |
So, the problem mysteriously solves itself for me. @deanilvincent Try running npm run serve again. It's probably an upstream issue that is solved now. |
Honestly, I've tried it so many times but still, the error persists. I've tried to clean the npm cache, delete node_modules folder then do some package restoration but nothing works. |
Maybe a permission issue. Try |
@sodatea Yup, I already tried it using |
Same problem here. I saw the issue is an error ENOSPC. Searching on stackoverflow I found this https://stackoverflow.com/questions/22475849/node-js-error-enospc that seems to fix the problem. |
@deanilvincent Does @ardf69 's tip help? |
Closing due to inactivity for more than 1 week. Please open a new issue with a reference to this one if you can follow up with more information. |
hello , did you fix this problem? i am in the same position now. please help |
npm install [email protected] |
rm -rf node_modules/ |
Same issue here. |
I was a same problem , I wait a little time and without do anything, after that, and sorprise, it working, but i don know the reason :''c |
same issue here. |
Same issue here! :| |
Same issue.
|
Can anyone fixed it? I'm also see same problem? |
0 info it worked if it ends with ok if have this type of error ....any help ! |
fix it in package.json file. it's problem with webpack version, delete character ^ before version. |
Same issue. Still not fix it. |
0 info it worked if it ends with ok |
I had same problems, same log file, I resolved it in 2 steps: |
It works! If anyone is using Yarn, the error persists if you reinstall the package using Yarn. After installing the packages using npm, it worked! Thank you! |
|
What fixed it for me: I ran npm update as suggested by @bryanSME. It seems I had a different issue. This time when I ran npm start, I saw that there was an ENOSPC error (it may have been there before and I might have not noticed it). I see that @ardf69 also mentions this error. Searching for ENOSPC took me to this thread. Using the first command in the selected answer (I am not using Arch Linux so I ignored the second and third command) fixed it for me. |
Also the problem may be caused by existing warnings. I have such error during Get rid of warnings or set this variable to |
Still no answer to this, I'm having the same problem... |
I ran into the exact same problem all of a sudden. Yesterday everything was fine, this morning, without doing anything. Poof.... :-s npm ci updated npm and node Untill I updated NPM to the latest version and node to the latest version |
ok, I just forgot create config file that was ignored in .gitignore (.\src\configs\config.js) and also got the same error. |
I removed the node_modules And now it works. |
I found that my hosts file was lost, but my |
So, after spending ridiculous amount of time trying to solve the issue (generally all the steps that I've found were involving reinstalling dependencies in one way or another) I've found the answer. It turns out that the latest node.js issue has some issues with Windows and the only way to fix this for me was to download previous version. I've downloaded it from: https://nodejs.org/en/download/releases/ the version that fixed it for me was Node.js 10.x Quick and painless (almost) I hope that this will help someone who will be stuck with a similar issue... https://stackoverflow.com/questions/58648120/npm-err-code-elifecycle-starting-issue |
In my case I solved it with more RAM |
i also solved it with relase more memnory space, thank you @marcell93 |
On a different note, I was trying to implement the server-renderer, but I forgot to install it with NPM. I have no idea why Node didn't tell me that a missing dependency was the problem, and why it gave that ridiculous error, but I literally solved it by running |
I solved this problem deleted all dependencies from package.json & package-lock.json. Then run |
What helped in my case was the following: npm cache clean --force EDIT: |
What did work for me was to close the editor and reopen it. |
The NPM run test is faulty;NPM Run Prod is fine;queer
Browserslist: caniuse-lite is outdated. Please run: Why you should do it regularly: / Building for test... ERROR Failed to compile with 3 errors error in ./src/views/goods/price-set-f/index.vue?vue&type=script&lang=js& Module parse failed: Unexpected token (1306:51)
| if (item.id === data.commodity_module.selection.store_value) { @ ./src/views/goods/price-set-f/index.vue?vue&type=script&lang=js& 1:0-298 1:314-317 1:319-614 1:319-614 error in ./src/views/finance/SoDepositList/index.vue?vue&type=script&lang=js& Module parse failed: Unexpected token (234:47)
| let params = { @ ./src/views/finance/SoDepositList/index.vue?vue&type=script&lang=js& 1:0-298 1:314-317 1:319-614 1:319-614 error in ./src/views/goods/price-set-list-f/index.vue?vue&type=script&lang=js& Module parse failed: Unexpected token (871:51)
| return time.getTime() < date - 86400000; @ ./src/views/goods/price-set-list-f/index.vue?vue&type=script&lang=js& 1:0-298 1:314-317 1:319-614 1:319-614 ERROR Build failed with errors. npm ERR! A complete log of this run can be found in: |
You may need to install latest version of react-scripts: |
Ciao a tutti, spero in un vostra illuminazione. Anche a me viene fuori un errore simile quando faccio la build, ma solo lato client. Ho già provato a eliminare i node_modules e package-lock.json per poi fare npm install ma non ho risolto nulla. Avete qualche altro consiglio? npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: 0 info it worked if it ends with ok |
Version
3.0.3
Node and OS info
Node: v8.12.0, NPM: 6.4.1
Steps to reproduce
I'm having an error while running the newly created pwa template from Vue.JS 3.
The command that I'm using is
npm run serve
What is expected?
I'm expecting to run my pwa template.
What is actually happening?
Having error that says
The error says,
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! [email protected] serve:
vue-cli-service serve
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the [email protected] 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! /var/root/.npm/_logs/2018-09-25T07_17_36_807Z-debug.log
Here's the full log from 2018-09-25T07_17_36_807Z-debug.log file
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 [email protected]
3 info using [email protected]
4 verbose run-script [ 'preserve', 'serve', 'postserve' ]
5 info lifecycle [email protected]
preserve: [email protected]serve: [email protected]6 info lifecycle [email protected]
7 verbose lifecycle [email protected]
serve: unsafe-perm in lifecycle trueserve: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/myuser/Documents/AppFolder$8 verbose lifecycle [email protected]
9 verbose lifecycle [email protected]
serve: CWD: /Users/myser/Documents/AppFolder/mywebappserve: Args: [ '-c', 'vue-cli-service serve' ]10 silly lifecycle [email protected]
11 silly lifecycle [email protected]
serve: Returned: code: 126 signal: nullserve: Failed to exec serve script12 info lifecycle [email protected]
13 verbose stack Error: [email protected] 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 emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:915:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/myuser/Documents/AppFolder/mywebapp
16 verbose Darwin 17.7.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "serve"
18 verbose node v8.12.0
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 126
22 error [email protected] serve:
vue-cli-service serve
22 error Exit status 126
23 error Failed at the [email protected] serve script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 126, true ]
The text was updated successfully, but these errors were encountered: