Coder Social home page Coder Social logo

Comments (5)

TekuConcept avatar TekuConcept commented on August 30, 2024

npm install -g @nodegui/qode --loglevel verbose --unsafe-perm true just yielded a successful install as the super user, and qode -v prints "12.6.1". But... running the same command as a normal user returns the error

Error: spawn /usr/local/lib/node_modules/@nodegui/qode/dist/1.0.6/qode EACCES

Update: running chmod +x /usr/local/lib/node_modules/@nodegui/qode/dist/1.0.6/qode fixed the issue. Don't know why I didn't catch that earlier.

from qode.

a7ul avatar a7ul commented on August 30, 2024

Hi @TekuConcept
Is there a specific reason you need qode to be installed globally ?

from qode.

TekuConcept avatar TekuConcept commented on August 30, 2024

Is there a specific reason you need qode to be installed globally ?

First, I have a development linux system where root is the only user. (It’s a barebones system.) As I demonstrated in the second attempt above, qode could not even be installed in some local folder as root.

Second, I wanted to run nodegui-specific apps without npm or running npm start. I also wanted to make it easier to write up a ts-node compatible script using qode, which I did find success with.

I shared my workaround solution above in the second post.

from qode.

a7ul avatar a7ul commented on August 30, 2024

Just a suggestion (not sure if you already know this) :
if you dont want to use npm start you could also do ./node_modules/.bin/qode index.js instead.

In any case can I close this issue since there is nothing to be done here ?

from qode.

TekuConcept avatar TekuConcept commented on August 30, 2024

I already know about the node_modules/.bin folder. Let’s drop the concept of installing globally and instead focus on installing locally...

I cannot install locally as root. (where root is the only user available and creating a new user is not an option)

I’ll hopefully come back later with a patch to help fix this.

from qode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.