Giter Club home page Giter Club logo

Comments (6)

mko avatar mko commented on May 27, 2024

This will also need to be pushed to NPM after it's fixed.

from ngd.

mko avatar mko commented on May 27, 2024

I take it back. It's a deeper issue. The typo is still a valid fix, but the issue actually revolves around configstore trying to access ~/.config/configstore/typings.json and there being an innate permissions issue there, even installing with sudo.

from ngd.

mko avatar mko commented on May 27, 2024

The error itself:

> [email protected] typings /usr/local/lib/node_modules/angular2-dependencies-graph
> typings install --ambient

/usr/local/lib/node_modules/angular2-dependencies-graph/node_modules/configstore/index.js:54
                throw err;
                ^

Error: EACCES: permission denied, open '/Users/mko/.config/configstore/typings.json'
You don't have access to this file.

    at Error (native)
    at Object.fs.openSync (fs.js:634:18)
    at Object.fs.readFileSync (fs.js:502:33)
    at Object.create.all.get (/usr/local/lib/node_modules/angular2-dependencies-graph/node_modules/configstore/index.js:35:26)
    at Object.Configstore (/usr/local/lib/node_modules/angular2-dependencies-graph/node_modules/configstore/index.js:28:44)
    at Object.<anonymous> (/usr/local/lib/node_modules/angular2-dependencies-graph/node_modules/typings-core/dist/utils/store.js:5:19)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)

It should be noted that simply changing the typings.json file in ~/.config/configstore/ to read/writable doesn't fix the issue.

from ngd.

mko avatar mko commented on May 27, 2024

It looks like you have to set the entire .config directory to read/writable. Might be worth looking for an alternative to configstore.

from ngd.

kushwahashiv avatar kushwahashiv commented on May 27, 2024

This creating trouble suddenly after upgrading it to typings version but works if you change permission

from ngd.

manekinekko avatar manekinekko commented on May 27, 2024

this issue seems to be related to typings. See related issue typings/typings#269

from ngd.

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.