Giter Club home page Giter Club logo

jsoncasing's People

Contributors

dependabot[bot] avatar stevenbenisek avatar stewartanderson3 avatar stewie1570 avatar wardpeet avatar

Watchers

 avatar

Forkers

stevenbenisek

jsoncasing's Issues

JSONCasing appears to be a git repo or submodule

Test case

Create a new folder and add a package.json:

{
  "name": "json-casing-test",
  "version": "1.0.0",
  "dependencies": {
    "json-casing": "^1.1.2"
  }
}

Run npm install.
Next, run npm install again.
You get the following error:

npm ERR! path /json-casing-test/node_modules/json-casing
npm ERR! code EISGIT
npm ERR! git /json-casing-test/node_modules/json-casing: Appears to be a git repo or submodule.
npm ERR! git     /json-casing-test/node_modules/json-casing
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

Cause

The published package contains a .git folder. You can verify this by running npm pack and checking the content of the generated tarball.

Solution

Remove all unnecessary files (including the .git folder) from the published package. You can do this by using package.json's files array or .npmignore

Unable to import JSONCasing

I'm unable to import this module into my program. I ran npm i json-casing to install the module, then opened up a new project in WebStorm, and created a new file.

When using the example provided in the Readme:
import { JSONCasing } from 'json-casing';

I get the following error:
(function (exports, require, module, __filename, __dirname) { import JSONCasing from 'json-casing;
^^^^^^^^^^

SyntaxError: Unexpected identifier

Am I missing something about your example?

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.