question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why put npm in dependencies?

See original GitHub issue

Description

npm in dependencies https://github.com/beautify-web/js-beautify/blob/main/package.json#L56

Input

run any npm command

Expected Output

success

Actual Output

npm does not support Node.js v10.17.0 You should probably upgrade to a newer version of node as we can’t make any promises that npm will work with this version. You can find the latest version at https://nodejs.org/ /data/jenkins/workspace/oa-pc-dev/node_modules/npm/lib/npm.js:32 #unloaded = false ^

SyntaxError: Invalid or unexpected token at Module._compile (internal/modules/cjs/loader.js:723:23) at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at module.exports (/data/jenkins/workspace/oa-pc-dev/node_modules/npm/lib/cli.js:22:15) at Object.<anonymous> (/data/jenkins/workspace/oa-pc-dev/node_modules/npm/bin/npm-cli.js:2:25) at Module._compile (internal/modules/cjs/loader.js:778:30)

Steps to Reproduce

any node 10.x can reproduce

npm list npm

Environment

OS: all system

Settings

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bitwisemancommented, Mar 29, 2022

Fixed and release as v1.14.2.

1reaction
lyonbotcommented, Mar 29, 2022

Can you remove that from dependency list? It’s blocking our CI system.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should I have npm as dependency in package.json?
No, you don't need to have NPM as the dependency in package.json file.
Read more >
Adding dependencies to a package.json file - npm Docs
To add dependencies and devDependencies to a package.json file from the command line, you can install them in the root directory of your...
Read more >
Understanding dependencies inside your Package.json
The dependencies in your project's package.json allow the project to install the versions of the modules it depends on. By running an install ......
Read more >
NPM: What are project dependencies? -- newline - Fullstack.io
Dependencies are packages our project uses in production. These get included with our code and are vital for making our application run. Whenever...
Read more >
Understanding the npm dependency model - Alexis King
Most users of npm (or at least most package authors) eventually learn that, unlike other package managers, npm installs a tree of dependencies....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found