New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install not working #8949

Open
ShaMan123 opened this Issue Oct 31, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@ShaMan123

ShaMan123 commented Oct 31, 2018

v7 Regression

First check out: https://new.babeljs.io/docs/en/next/v7-migration.html
Also a partial upgrade tool: https://github.com/babel/babel-upgrade => Tried and is buggy

Potential Commit/PR that introduced the regression
No idea.

Describe the regression
running npm install does not install sub modules.
running yarn add behaves strangely.

Babel Configuration (.babelrc, package.json, cli command)
not relevant

Expected behavior/code

npm

running npm i --save-dev @babel/preset-env (for example) does not add the package.
Deleting the entire @babel node_module directory causes the install the say it has added whatever sub module I've just installed but doesn't do that (Checked the folder node_modules/@babel)
running npm cache clean --force doesn't make a difference.

yarn

Using yarn solved the problem ONLY if installing this way:
yarn add --dev @babel/sub-moduleA @babel/sub-moduleB @babel/sub-moduleC.
trying to install each one overrides the previous install:

yarn add --dev @babel/sub-moduleA
yarn add --dev @babel/sub-moduleB
yarn add --dev @babel/sub-moduleC

Environment

  • Babel version(s): v7.1.2
  • Node/npm version: node v10.13.0/npm 6.1.0
  • OS: Windows 10
  • Monorepo: I think no
  • How you are using Babel: guessing loader (sorry... using with react)
@babel-bot

This comment has been minimized.

Collaborator

babel-bot commented Oct 31, 2018

Hey @ShaMan123! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.

@nicolo-ribaudo

This comment has been minimized.

Member

nicolo-ribaudo commented Oct 31, 2018

If you install multiple packages (e.g. npm install -D @babel/core and npm install -D @babel/preset-env), which folders do you see inside node_modules/@babel?

@ShaMan123

This comment has been minimized.

ShaMan123 commented Oct 31, 2018

code-frame
core
generator
helper-annotate-as-pure
helper-builder-binary-assignment-operator-visitor
helper-builder-react-jsx
helper-call-delegate
helper-define-map
helper-explode-assignable-expression
helper-function-name
helper-get-function-arity
helper-hoist-variables
helper-member-expression-to-functions
helper-module-imports
helper-module-transforms
helper-optimise-call-expression
helper-plugin-utils
helper-regex
helper-remap-async-to-generator
helper-replace-supers
helpers
helper-simple-access
helper-split-export-declaration
helper-wrap-function
highlight
parser
plugin-external-helpers
plugin-proposal-class-properties
plugin-proposal-export-default-from
plugin-proposal-nullish-coalescing-operator
plugin-proposal-object-rest-spread
plugin-proposal-optional-catch-binding
plugin-proposal-optional-chaining
plugin-syntax-class-properties
plugin-syntax-dynamic-import
plugin-syntax-export-default-from
plugin-syntax-flow
plugin-syntax-jsx
plugin-syntax-nullish-coalescing-operator
plugin-syntax-object-rest-spread
plugin-syntax-optional-catch-binding
plugin-syntax-optional-chaining
plugin-syntax-typescript
plugin-transform-arrow-functions
plugin-transform-async-to-generator
plugin-transform-block-scoped-functions
plugin-transform-block-scoping
plugin-transform-classes
plugin-transform-computed-properties
plugin-transform-destructuring
plugin-transform-exponentiation-operator
plugin-transform-flow-strip-types
plugin-transform-for-of
plugin-transform-function-name
plugin-transform-literals
plugin-transform-member-expression-literals
plugin-transform-modules-commonjs
plugin-transform-object-assign
plugin-transform-object-super
plugin-transform-parameters
plugin-transform-property-literals
plugin-transform-react-display-name
plugin-transform-react-jsx
plugin-transform-react-jsx-source
plugin-transform-regenerator
plugin-transform-runtime
plugin-transform-shorthand-properties
plugin-transform-spread
plugin-transform-sticky-regex
plugin-transform-template-literals
plugin-transform-typescript
plugin-transform-unicode-regex
register
runtime
template
traverse
types
@ShaMan123

This comment has been minimized.

ShaMan123 commented Oct 31, 2018

I saw that @babel/core removes @babel's entire content before installing.
yarn does it too. It removes everything each time I add a package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment