Closed meijinyi closed 3 years ago
@SmallStoneSK @iloveyou11 win下面的错误
use https://github.com/jasongin/nvs check this issue @iloveyou11
node 版本 v12.16.3
Have anything news & how to fix @meijinyi
@meijinyi @t2hv33
Commit f62098b920043db18abd36adc560d12b64970920 has fixed it.
Watch command needs to use double quotes in Windows environment.
`> root@ example D:\pwork\imove
[2] server starts successfully at 3500! [0] lerna notice cli v3.22.1 [0] lerna info Executing command in 4 packages: "npm run watch" [0] @imove/compile-code: > @imove/compile-code@0.0.1 watch D:\pwork\imove\packages\compile-code [0] @imove/compile-code: > watch 'npm run build' ./src [0] @imove/core: > @imove/core@0.3.5 watch D:\pwork\imove\packages\core [0] @imove/core: > watch 'npm run build' ./src [0] @imove/json-schema-editor: > @imove/json-schema-editor@0.3.2 watch D:\pwork\imove\packages\json-schema-editor [0] @imove/json-schema-editor: > watch 'npm run build' ./src [0] @imove/plugin-store: > @imove/plugin-store@0.0.1 watch D:\pwork\imove\packages\plugin-store [0] @imove/plugin-store: > watch 'npm run build' ./src [0] @imove/compile-code: > Watching run [0] @imove/compile-code: > Watching build' [0] @imove/compile-code: > Watching ./src [0] @imove/compile-code: D:\pwork\imove\node_modules\watch\main.js:73 [0] @imove/compile-code: if (err) throw err; [0] @imove/compile-code: ^ [0] @imove/compile-code: [Error: ENOENT: no such file or directory, stat 'D:\pwork\imove\packages\compile-code\run'] { [0] @imove/compile-code: errno: -4058, [0] @imove/compile-code: code: 'ENOENT', [0] @imove/compile-code: syscall: 'stat', [0] @imove/compile-code: path: 'D:\pwork\imove\packages\compile-code\run' [0] @imove/compile-code: } [0] @imove/compile-code: npm ERR! code ELIFECYCLE [0] @imove/compile-code: npm ERR! errno 1 [0] @imove/compile-code: npm ERR! @imove/compile-code@0.0.1 watch:
watch 'npm run build' ./src
[0] @imove/compile-code: npm ERR! Exit status 1 [0] @imove/compile-code: npm ERR! [0] @imove/compile-code: npm ERR! Failed at the @imove/compile-code@0.0.1 watch script. [0] @imove/compile-code: npm ERR! This is probably not a problem with npm. There is likely additional logging output above. [0] @imove/compile-code: npm ERR! A complete log of this run can be found in: [0] @imove/compile-code: npm ERR! C:\Users\mei\AppData\Roaming\npm-cache_logs\2021-01-11T06_05_16_838Z-debug.log [0] lerna ERR! npm run watch exited 1 in '@imove/compile-code' [0] lerna ERR! npm run watch stdout: [0] [0] > @imove/compile-code@0.0.1 watch D:\pwork\imove\packages\compile-code [0] > watch 'npm run build' ./src [0] [0] [0] lerna ERR! npm run watch stderr: [0] > Watching run [0] > Watching build' [0] > Watching ./src [0] D:\pwork\imove\node_modules\watch\main.js:73 [0] if (err) throw err; [0] ^ [0] [0] [Error: ENOENT: no such file or directory, stat 'D:\pwork\imove\packages\compile-code\run'] { [0] errno: -4058, [0] code: 'ENOENT', [0] syscall: 'stat', [0] path: 'D:\pwork\imove\packages\compile-code\run' [0] } [0] npm ERR! code ELIFECYCLE [0] npm ERR! errno 1 [0] npm ERR! @imove/compile-code@0.0.1 watch:watch 'npm run build' ./src
[0] npm ERR! Exit status 1 [0] npm ERR! [0] npm ERR! Failed at the @imove/compile-code@0.0.1 watch script. [0] npm ERR! This is probably not a problem with npm. There is likely additional logging output above. [0] [0] npm ERR! A complete log of this run can be found in: [0] npm ERR! C:\Users\mei\AppData\Roaming\npm-cache_logs\2021-01-11T06_05_16_838Z-debug.log [0] [0] lerna ERR! npm run watch exited 1 in '@imove/compile-code' [0] lerna WARN complete Waiting for 3 child processes to exit. CTRL-C to exit immediately. [0] lerna run watch --parallel exited with code 1 [1] Starting the development server... [1] i Compiling Webpack [1] √ Webpack: Compiled with some errors in 1.85s [1] ERROR Failed to compile with 1 errors14:05:20 [1] [1] This relative module was not found: [1] [1] * ../../../packages/core/dist/core.esm.js in ./example/src/pages/index.tsx`