Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c:\cmder/vendor/clink-completions/npm_prompt.lua:11: attempt to concatenate local 'package_version' (a nil value)
- The solution that worked for me was to edit the file:
- {YOUR_PATH}/cmder/vendor/clink-completions/npm_prompt.lua
- and overwrite the related lines to be this instead:
- The original npm_prompt.lua was (BEFORE FIX)
- ...
- local package_name = string.match(package_info, '"name"%s*:%s*"(%g-)"')
- local package_version = string.match(package_info, '"version"%s*:%s*"(.-)"')
- ...
- and the change is (AFTER FIX):
- ...
- local package_name = string.match(package_info, '"name"%s*:%s*"(%g-)"')
- if package_name == nil then
- package_name = ''
- end
- local package_version = string.match(package_info, '"version"%s*:%s*"(.-)"')
- if package_version == nil then
- package_version = ''
- end
- ...
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement