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

path.js:39 throw new ERR_INVALID_ARG_TYPE('path', 'string', path); #47

Open
xiuxiuing opened this issue Nov 7, 2018 · 4 comments
Open

Comments

@xiuxiuing
Copy link

使用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

@ariesly15
Copy link
Member

使用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 都是什么版本的

@xiuxiuing
Copy link
Author

node 10.13.0
npm 6.4.1
ykit 0.8.4

@ariesly15
Copy link
Member

node 10.13.0
npm 6.4.1
ykit 0.8.4

试试用 node 8

@xiuxiuing
Copy link
Author

我本机的node版本是10.5.0的打包没问题,配置到Jenkins里面执行打包脚本就报上面的错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants