Open xiuxiuing opened 6 years ago
使用ykit 打包是报错了
- ykit pack -m path.js:39 throw new ERR_INVALID_ARG_TYPE('path', 'string', path); ^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined at assertPath (path.js:39:11) at Object.join (path.js:1155:7) at Object. (/usr/local/lib/node_modules/ykit/lib/global.js:26:28) at Module._compile (internal/modules/cjs/loader.js:688:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10) at Module.load (internal/modules/cjs/loader.js:598:32) at tryModuleLoad (internal/modules/cjs/loader.js:537:12) at Function.Module._load (internal/modules/cjs/loader.js:529:3) at Module.require (internal/modules/cjs/loader.js:636:17) at require (internal/modules/cjs/helpers.js:20:18) Build step 'Execute shell' marked build as failure Finished: FAILURE
ykit node npm 都是什么版本的
node 10.13.0 npm 6.4.1 ykit 0.8.4
node 10.13.0 npm 6.4.1 ykit 0.8.4
试试用 node 8
我本机的node版本是10.5.0的打包没问题,配置到Jenkins里面执行打包脚本就报上面的错误
使用ykit 打包是报错了
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined at assertPath (path.js:39:11) at Object.join (path.js:1155:7) at Object. (/usr/local/lib/node_modules/ykit/lib/global.js:26:28)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
Build step 'Execute shell' marked build as failure
Finished: FAILURE