Skip to content
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

npm run example 报错 #44

Closed
meijinyi opened this issue Jan 11, 2021 · 5 comments
Closed

npm run example 报错 #44

meijinyi opened this issue Jan 11, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@meijinyi
Copy link

`> root@ example D:\pwork\imove

concurrently "lerna run watch --parallel" "cross-env APP_ROOT=example umi dev" "imove -d"

[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`

@i5ting
Copy link
Owner

i5ting commented Jan 11, 2021

@SmallStoneSK @iloveyou11 win下面的错误

@SmallStoneSK SmallStoneSK self-assigned this Jan 11, 2021
@SmallStoneSK SmallStoneSK added the bug Something isn't working label Jan 11, 2021
@i5ting
Copy link
Owner

i5ting commented Jan 11, 2021

use https://github.com/jasongin/nvs check this issue @iloveyou11

@meijinyi
Copy link
Author

node 版本
v12.16.3

@t2hv33
Copy link

t2hv33 commented Jan 13, 2021

Have anything news & how to fix @meijinyi

@SmallStoneSK
Copy link
Collaborator

@meijinyi @t2hv33

Commit f62098b has fixed it.

Watch command needs to use double quotes in Windows environment.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants