|
在本地编译是成功的,但是在服务器上编译是失败的。
版本号:
root@localhost:~# node -v
v9.2.0
root@localhost:~# npm -v
6.9.1-next.0
错误代码:
- + hap-toolkit@0.4.7
- added 737 packages in 73.984s
- + hap -v
- 0.4.7
- + npm install
-
- > Oppo-IoT-QuickAPP@1.0.0 postinstall /var/lib/jenkins/workspace/Oppo-IoT
- > hap postinstall
-
- [WARN] Deprecated command!
- npm WARN Oppo-IoT-QuickAPP@1.0.0 No repository field.
- npm WARN Oppo-IoT-QuickAPP@1.0.0 scripts['server'] should probably be scripts['start'].
- npm WARN Oppo-IoT-QuickAPP@1.0.0 No license field.
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
- npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
-
- added 68 packages in 3.974s
- + npm run release-test
-
- > Oppo-IoT-QuickAPP@1.0.0 release-test /var/lib/jenkins/workspace/Oppo-IoT
- > cp ./envArgs/test.js ./src/encode/env.js && hap release
-
- [INFO] hap-toolkit: 0.4.7; babel: 7.4.5; webpack: 4.32.2;
- (node:9845) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Path must be a string. Received undefined
- (node:9845) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
- + cd ./dist
- /tmp/jenkins4667210530313872306.sh: 6: cd: can't cd to ./dist
- Build step '执行 shell' marked build as failure
- Finished: FAILURE
复制代码
|
|