You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'rm' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: rm -rf ../public/{js,css,img} && vue-cli-service build --no-clean
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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: [x]
npm ERR!
Extra info:
the command runs fine in another project.
rm -rf is the linux variant, how can i change this to the windows variant?
for completeness, here is the log file:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\bin\node\node.exe',
1 verbose cli 'C:\bin\node\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]prebuild: [email protected]
6 info lifecycle [email protected]build: [email protected]
7 verbose lifecycle [email protected]build: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]build: PATH: C:\bin\node\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\x\htdocs\vueclitest\frontend\node_modules.bin;C:\Program Files\ConEmu\ConEmu\Scripts;C:\Program Files\ConEmu;C:\Program Files\ConEmu\ConEmu;C:\Program Files\Docker\Docker\Resources\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\x\php;C:\ProgramData\ComposerSetup\bin;C:\bin\Git\cmd;C:\bin\node;C:\Users\Game PC\AppData\Local\Microsoft\WindowsApps;C:\Users\Game PC\AppData\Roaming\Composer\vendor\bin;C:\Users\Game PC\AppData\Roaming\npm;C:\Program Files (x86)\Yarn\bin
9 verbose lifecycle [email protected]build: CWD: C:\x\htdocs\vueclitest\frontend
10 silly lifecycle [email protected]build: Args: [ '/d /s /c',
10 silly lifecycle 'rm -rf ../public/{js,css,img} && vue-cli-service build --no-clean' ]
11 silly lifecycle [email protected]build: Returned: code: 1 signal: null
12 info lifecycle [email protected]build: Failed to exec build script
13 verbose stack Error: [email protected] build: rm -rf ../public/{js,css,img} && vue-cli-service build --no-clean
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\bin\node\node_modules\npm\node_modules\npm-lifecycle\index.js:285: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. (C:\bin\node\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:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\x\htdocs\vueclitest\frontend
16 verbose Windows_NT 10.0.17134
17 verbose argv "C:\bin\node\node.exe" "C:\bin\node\node_modules\npm\bin\npm-cli.js" "run" "build"
18 verbose node v8.11.2
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] build: rm -rf ../public/{js,css,img} && vue-cli-service build --no-clean
22 error Exit status 1
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered:
Hi, this is the response when running npm run build
npm run build
'rm' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:
rm -rf ../public/{js,css,img} && vue-cli-service build --no-clean
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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: [x]
npm ERR!
Extra info:
the command runs fine in another project.
rm -rf is the linux variant, how can i change this to the windows variant?
for completeness, here is the log file:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\bin\node\node.exe',
1 verbose cli 'C:\bin\node\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]
prebuild: [email protected]build: [email protected]6 info lifecycle [email protected]
7 verbose lifecycle [email protected]
build: unsafe-perm in lifecycle truebuild: PATH: C:\bin\node\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\x\htdocs\vueclitest\frontend\node_modules.bin;C:\Program Files\ConEmu\ConEmu\Scripts;C:\Program Files\ConEmu;C:\Program Files\ConEmu\ConEmu;C:\Program Files\Docker\Docker\Resources\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\x\php;C:\ProgramData\ComposerSetup\bin;C:\bin\Git\cmd;C:\bin\node;C:\Users\Game PC\AppData\Local\Microsoft\WindowsApps;C:\Users\Game PC\AppData\Roaming\Composer\vendor\bin;C:\Users\Game PC\AppData\Roaming\npm;C:\Program Files (x86)\Yarn\bin8 verbose lifecycle [email protected]
9 verbose lifecycle [email protected]
build: CWD: C:\x\htdocs\vueclitest\frontendbuild: Args: [ '/d /s /c',10 silly lifecycle [email protected]
10 silly lifecycle 'rm -rf ../public/{js,css,img} && vue-cli-service build --no-clean' ]
11 silly lifecycle [email protected]
build: Returned: code: 1 signal: nullbuild: Failed to exec build script12 info lifecycle [email protected]
13 verbose stack Error: [email protected] build:
rm -rf ../public/{js,css,img} && vue-cli-service build --no-clean
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\bin\node\node_modules\npm\node_modules\npm-lifecycle\index.js:285: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. (C:\bin\node\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:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\x\htdocs\vueclitest\frontend
16 verbose Windows_NT 10.0.17134
17 verbose argv "C:\bin\node\node.exe" "C:\bin\node\node_modules\npm\bin\npm-cli.js" "run" "build"
18 verbose node v8.11.2
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] build:
rm -rf ../public/{js,css,img} && vue-cli-service build --no-clean
22 error Exit status 1
23 error Failed at the [email protected] build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered: