M
M
Maxim2020-05-13 22:16:02
npm
Maxim, 2020-05-13 22:16:02

Error when npm run watch?

When I run the npm run watch command, I get this error:

0 info it worked if it ends with ok
1 verbose cli [ '/home/e/extremje/.local/bin/node',
1 verbose cli   '/home/e/extremje/.local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'watch' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prewatch', 'watch', 'postwatch' ]
5 info lifecycle @~prewatch: @
6 silly lifecycle @~prewatch: no script for prewatch, continuing
7 info lifecycle @~watch: @
8 verbose lifecycle @~watch: unsafe-perm in lifecycle true
9 verbose lifecycle @~watch: PATH: /home/e/extremje/.local/lib/node_modules/npm/bin/node-gyp-bin:/home/e/extremje/cdn.service.lt-site.com/public_html/node_modules/.bin:/home/e/extremje/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
10 verbose lifecycle @~watch: CWD: /home/e/extremje/cdn.service.lt-site.com/public_html
11 silly lifecycle @~watch: Args: [ '-c', 'npm run development -- --watch' ]
12 silly lifecycle @~watch: Returned: code: 1  signal: null
13 info lifecycle @~watch: Failed to exec watch script
14 verbose stack Error: @ watch: `npm run development -- --watch`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/home/e/extremje/.local/lib/node_modules/npm/lib/utils/lifecycle.js:283:16)
14 verbose stack     at emitTwo (events.js:125:13)
14 verbose stack     at EventEmitter.emit (events.js:213:7)
14 verbose stack     at ChildProcess.<anonymous> (/home/e/extremje/.local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:125:13)
14 verbose stack     at ChildProcess.emit (events.js:213:7)
14 verbose stack     at maybeClose (internal/child_process.js:897:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
15 verbose pkgid @
16 verbose cwd /home/e/extremje/cdn.service.lt-site.com/public_html
17 verbose Linux 4.9.132-0-beget-acl
18 verbose argv "/home/e/extremje/.local/bin/node" "/home/e/extremje/.local/bin/npm" "run" "watch"
19 verbose node v8.1.2
20 verbose npm  v5.0.3
21 error code ELIFECYCLE
22 error errno 1
23 error @ watch: `npm run development -- --watch`
23 error Exit status 1
24 error Failed at the @ watch script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question