Closed LiboliboLibolibo closed 5 years ago
ant design pro项目,在npm run build时报上面错,不知道从哪方面入手解决
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/8.4.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using npm@6.5.0-next.0
3 info using node@v11.6.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle ant-design-pro@2.1.1~prebuild: ant-design-pro@2.1.1
6 info lifecycle ant-design-pro@2.1.1~build: ant-design-pro@2.1.1
7 verbose lifecycle ant-design-pro@2.1.1~build: unsafe-perm in lifecycle true
8 verbose lifecycle ant-design-pro@2.1.1~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/tiantian/admin-test/qyl-admin/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/tiantian/.rvm/bin
9 verbose lifecycle ant-design-pro@2.1.1~build: CWD: /Users/tiantian/admin-test/qyl-admin
10 silly lifecycle ant-design-pro@2.1.1~build: Args: [ '-c', 'umi build' ]
11 silly lifecycle ant-design-pro@2.1.1~build: Returned: code: 1 signal: null
12 info lifecycle ant-design-pro@2.1.1~build: Failed to exec build script
13 verbose stack Error: ant-design-pro@2.1.1 build: umi build
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.umi build
22 error Exit status 1
23 error Failed at the ant-design-pro@2.1.1 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
以上是报错日志
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! ant-design-pro@2.1.1 build:
umi build
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ant-design-pro@2.1.1 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above