Skip to content

Can't require lua-cjson #470

@Hammad1029

Description

@Hammad1029

I have a lua script that imports lua-cjson
require("cjson")

What ever I do, running this script using gopher-lua returns:

no field package.preload['cjson'] stat ./cjson.lua: no such file or directory stat /usr/local/share/lua/5.1/cjson.lua: no such file or directory stat /usr/local/share/lua/5.1/cjson/init.lua: no such file or directory,

while running the script using the standard shell using lua script.lua runs fine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions