npm deprecated warning for packages not in package.json file
I am trying to set up a work folder for Exercism JavaScript tutorial and when I run npm install
command, I get the message below
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit https://github.com/lukeed/kleur/releases/tag/v3.0.0 for migration path(s).
When I looked through my package.json file, there is no CircularJSON or kleur so I am wondering why I get the warning and the packages in there are not installed by npm. Here's the package.json file
{
"name": "exercism-javascript",
"version": "0.0.0",
"description": "Exercism exercises in Javascript.",
"author": "Katrina Owen",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/exercism/javascript"
},
"devDependencies": {
"babel-eslint": "^10.0.1",
"babel-jest": "^21.2.0",
"babel-plugin-transform-builtin-extend": "^1.1.2",
"babel-preset-env": "^1.7.0",
"eslint": "^5.6.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"jest": "^23.6.0"
},
"jest": {
"modulePathIgnorePatterns": [
"package.json"
]
},
"babel": {
"presets": [
[
"env",
{
"targets": [
{
"node": "current"
}
]
}
]
],
"plugins": [
[
"babel-plugin-transform-builtin-extend",
{
"globals": [
"Error"
]
}
],
[
"transform-regenerator"
]
]
},
"scripts": {
"test": "jest --no-cache ./*",
"watch": "jest --no-cache --watch ./*",
"lint": "eslint .",
"lint-test": "eslint . && jest --no-cache ./* "
},
"eslintConfig": {
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module"
},
"env": {
"es6": true,
"node": true,
"jest": true
},
"extends": "airbnb-base",
"rules": {
"import/no-unresolved": "off",
"import/extensions": "off",
"import/prefer-default-export": "off",
"import/no-default-export": "off"
}
},
"license": "MIT"
}
How can I fix this?
javascript node.js npm
add a comment |
I am trying to set up a work folder for Exercism JavaScript tutorial and when I run npm install
command, I get the message below
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit https://github.com/lukeed/kleur/releases/tag/v3.0.0 for migration path(s).
When I looked through my package.json file, there is no CircularJSON or kleur so I am wondering why I get the warning and the packages in there are not installed by npm. Here's the package.json file
{
"name": "exercism-javascript",
"version": "0.0.0",
"description": "Exercism exercises in Javascript.",
"author": "Katrina Owen",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/exercism/javascript"
},
"devDependencies": {
"babel-eslint": "^10.0.1",
"babel-jest": "^21.2.0",
"babel-plugin-transform-builtin-extend": "^1.1.2",
"babel-preset-env": "^1.7.0",
"eslint": "^5.6.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"jest": "^23.6.0"
},
"jest": {
"modulePathIgnorePatterns": [
"package.json"
]
},
"babel": {
"presets": [
[
"env",
{
"targets": [
{
"node": "current"
}
]
}
]
],
"plugins": [
[
"babel-plugin-transform-builtin-extend",
{
"globals": [
"Error"
]
}
],
[
"transform-regenerator"
]
]
},
"scripts": {
"test": "jest --no-cache ./*",
"watch": "jest --no-cache --watch ./*",
"lint": "eslint .",
"lint-test": "eslint . && jest --no-cache ./* "
},
"eslintConfig": {
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module"
},
"env": {
"es6": true,
"node": true,
"jest": true
},
"extends": "airbnb-base",
"rules": {
"import/no-unresolved": "off",
"import/extensions": "off",
"import/prefer-default-export": "off",
"import/no-default-export": "off"
}
},
"license": "MIT"
}
How can I fix this?
javascript node.js npm
Probably it is a dependency of one of the dependencies. Just upgrade kleur and install flatted, and it should work fine.
– Ahmed Hammad
Nov 20 at 0:23
Successfully installed both kleur and flatted but I still can't install the other packages just by running npm install. I get the same error as before but with the add linenpm ERR! Unexpected end of JSON input while parsing near '.../registry.npmjs.org/b'
– Mena
Nov 20 at 0:33
Try annpm list | grep -B10 circular-json
. This will find references to circular-json in your npm dependencies list (with the previous 10 lines before the reference included, which is useful if you are trying to dig through where it is being pulled in from.
– Daniel Bank
Nov 20 at 4:38
add a comment |
I am trying to set up a work folder for Exercism JavaScript tutorial and when I run npm install
command, I get the message below
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit https://github.com/lukeed/kleur/releases/tag/v3.0.0 for migration path(s).
When I looked through my package.json file, there is no CircularJSON or kleur so I am wondering why I get the warning and the packages in there are not installed by npm. Here's the package.json file
{
"name": "exercism-javascript",
"version": "0.0.0",
"description": "Exercism exercises in Javascript.",
"author": "Katrina Owen",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/exercism/javascript"
},
"devDependencies": {
"babel-eslint": "^10.0.1",
"babel-jest": "^21.2.0",
"babel-plugin-transform-builtin-extend": "^1.1.2",
"babel-preset-env": "^1.7.0",
"eslint": "^5.6.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"jest": "^23.6.0"
},
"jest": {
"modulePathIgnorePatterns": [
"package.json"
]
},
"babel": {
"presets": [
[
"env",
{
"targets": [
{
"node": "current"
}
]
}
]
],
"plugins": [
[
"babel-plugin-transform-builtin-extend",
{
"globals": [
"Error"
]
}
],
[
"transform-regenerator"
]
]
},
"scripts": {
"test": "jest --no-cache ./*",
"watch": "jest --no-cache --watch ./*",
"lint": "eslint .",
"lint-test": "eslint . && jest --no-cache ./* "
},
"eslintConfig": {
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module"
},
"env": {
"es6": true,
"node": true,
"jest": true
},
"extends": "airbnb-base",
"rules": {
"import/no-unresolved": "off",
"import/extensions": "off",
"import/prefer-default-export": "off",
"import/no-default-export": "off"
}
},
"license": "MIT"
}
How can I fix this?
javascript node.js npm
I am trying to set up a work folder for Exercism JavaScript tutorial and when I run npm install
command, I get the message below
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit https://github.com/lukeed/kleur/releases/tag/v3.0.0 for migration path(s).
When I looked through my package.json file, there is no CircularJSON or kleur so I am wondering why I get the warning and the packages in there are not installed by npm. Here's the package.json file
{
"name": "exercism-javascript",
"version": "0.0.0",
"description": "Exercism exercises in Javascript.",
"author": "Katrina Owen",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/exercism/javascript"
},
"devDependencies": {
"babel-eslint": "^10.0.1",
"babel-jest": "^21.2.0",
"babel-plugin-transform-builtin-extend": "^1.1.2",
"babel-preset-env": "^1.7.0",
"eslint": "^5.6.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"jest": "^23.6.0"
},
"jest": {
"modulePathIgnorePatterns": [
"package.json"
]
},
"babel": {
"presets": [
[
"env",
{
"targets": [
{
"node": "current"
}
]
}
]
],
"plugins": [
[
"babel-plugin-transform-builtin-extend",
{
"globals": [
"Error"
]
}
],
[
"transform-regenerator"
]
]
},
"scripts": {
"test": "jest --no-cache ./*",
"watch": "jest --no-cache --watch ./*",
"lint": "eslint .",
"lint-test": "eslint . && jest --no-cache ./* "
},
"eslintConfig": {
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module"
},
"env": {
"es6": true,
"node": true,
"jest": true
},
"extends": "airbnb-base",
"rules": {
"import/no-unresolved": "off",
"import/extensions": "off",
"import/prefer-default-export": "off",
"import/no-default-export": "off"
}
},
"license": "MIT"
}
How can I fix this?
javascript node.js npm
javascript node.js npm
asked Nov 20 at 0:19
Mena
370521
370521
Probably it is a dependency of one of the dependencies. Just upgrade kleur and install flatted, and it should work fine.
– Ahmed Hammad
Nov 20 at 0:23
Successfully installed both kleur and flatted but I still can't install the other packages just by running npm install. I get the same error as before but with the add linenpm ERR! Unexpected end of JSON input while parsing near '.../registry.npmjs.org/b'
– Mena
Nov 20 at 0:33
Try annpm list | grep -B10 circular-json
. This will find references to circular-json in your npm dependencies list (with the previous 10 lines before the reference included, which is useful if you are trying to dig through where it is being pulled in from.
– Daniel Bank
Nov 20 at 4:38
add a comment |
Probably it is a dependency of one of the dependencies. Just upgrade kleur and install flatted, and it should work fine.
– Ahmed Hammad
Nov 20 at 0:23
Successfully installed both kleur and flatted but I still can't install the other packages just by running npm install. I get the same error as before but with the add linenpm ERR! Unexpected end of JSON input while parsing near '.../registry.npmjs.org/b'
– Mena
Nov 20 at 0:33
Try annpm list | grep -B10 circular-json
. This will find references to circular-json in your npm dependencies list (with the previous 10 lines before the reference included, which is useful if you are trying to dig through where it is being pulled in from.
– Daniel Bank
Nov 20 at 4:38
Probably it is a dependency of one of the dependencies. Just upgrade kleur and install flatted, and it should work fine.
– Ahmed Hammad
Nov 20 at 0:23
Probably it is a dependency of one of the dependencies. Just upgrade kleur and install flatted, and it should work fine.
– Ahmed Hammad
Nov 20 at 0:23
Successfully installed both kleur and flatted but I still can't install the other packages just by running npm install. I get the same error as before but with the add line
npm ERR! Unexpected end of JSON input while parsing near '.../registry.npmjs.org/b'
– Mena
Nov 20 at 0:33
Successfully installed both kleur and flatted but I still can't install the other packages just by running npm install. I get the same error as before but with the add line
npm ERR! Unexpected end of JSON input while parsing near '.../registry.npmjs.org/b'
– Mena
Nov 20 at 0:33
Try an
npm list | grep -B10 circular-json
. This will find references to circular-json in your npm dependencies list (with the previous 10 lines before the reference included, which is useful if you are trying to dig through where it is being pulled in from.– Daniel Bank
Nov 20 at 4:38
Try an
npm list | grep -B10 circular-json
. This will find references to circular-json in your npm dependencies list (with the previous 10 lines before the reference included, which is useful if you are trying to dig through where it is being pulled in from.– Daniel Bank
Nov 20 at 4:38
add a comment |
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53384492%2fnpm-deprecated-warning-for-packages-not-in-package-json-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53384492%2fnpm-deprecated-warning-for-packages-not-in-package-json-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Probably it is a dependency of one of the dependencies. Just upgrade kleur and install flatted, and it should work fine.
– Ahmed Hammad
Nov 20 at 0:23
Successfully installed both kleur and flatted but I still can't install the other packages just by running npm install. I get the same error as before but with the add line
npm ERR! Unexpected end of JSON input while parsing near '.../registry.npmjs.org/b'
– Mena
Nov 20 at 0:33
Try an
npm list | grep -B10 circular-json
. This will find references to circular-json in your npm dependencies list (with the previous 10 lines before the reference included, which is useful if you are trying to dig through where it is being pulled in from.– Daniel Bank
Nov 20 at 4:38