Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm ci with --prefix is not working #20228

Open
4 tasks
BPrathap opened this issue Apr 2, 2018 · 0 comments
Open
4 tasks

npm ci with --prefix is not working #20228

BPrathap opened this issue Apr 2, 2018 · 0 comments

Comments

@BPrathap
Copy link

BPrathap commented Apr 2, 2018

I'm opening this issue because:

  • npm is crashing.
  • npm is producing an incorrect install.
  • npm is doing something I don't understand.
  • npm is producing incorrect or undesirable behavior.
  • [] Other (see below for feature requests):

What's going wrong?

npm ci with prefix is not working

How can the CLI team reproduce the problem?

npm ci --prefix=./app/sample-ui/

Error: npm ERR! (intermediate value)(intermediate value)(intermediate value).then is not a function

Error Log

0 info it worked if it ends with ok
1 verbose cli [ '/Users/pratb/.nvm/versions/node/v8.9.4/bin/node',
1 verbose cli '/Users/pratb/.nvm/versions/node/v8.9.4/bin/npm',
1 verbose cli 'ci',
1 verbose cli '--prefix=./app/pnp-ui/' ]
2 info using npm@5.8.0
3 info using node@v8.9.4
4 verbose npm-session 6d041cc2916b36b6
5 info prepare initializing installer
6 verbose prepare starting workers
7 verbose stack TypeError: (intermediate value)(intermediate value)(intermediate value).then is not a function
7 verbose stack at Installer.prepare (/Users/pratb/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/libcipm/index.js:97:8)
7 verbose stack at Installer.timedStage (/Users/pratb/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/libcipm/index.js:43:34)
7 verbose stack at Installer.run (/Users/pratb/.nvm/versions/node/v8.9.4/lib/node_modules/npm/node_modules/libcipm/index.js:52:17)
7 verbose stack at EventEmitter.ci (/Users/pratb/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/ci.js:30:4)
7 verbose stack at Object.commandCache.(anonymous function) (/Users/pratb/.nvm/versions/node/v8.9.4/lib/node_modules/npm/lib/npm.js:159:13)
7 verbose stack at EventEmitter. (/Users/pratb/.nvm/versions/node/v8.9.4/lib/node_modules/npm/bin/npm-cli.js:84:30)
7 verbose stack at _combinedTickCallback (internal/process/next_tick.js:131:7)
7 verbose stack at process._tickCallback (internal/process/next_tick.js:180:9)
8 verbose cwd /Users/pratb/Documents/GITBASE/DNAC/plugins/pnp-app/ui-plugins/pnp-ui
9 verbose Darwin 17.3.0
10 verbose argv "/Users/pratb/.nvm/versions/node/v8.9.4/bin/node" "/Users/pratb/.nvm/versions/node/v8.9.4/bin/npm" "ci" "--prefix=./app/pnp-ui/"
11 verbose node v8.9.4
12 verbose npm v5.8.0
13 error (intermediate value)(intermediate value)(intermediate value).then is not a function
14 verbose exit [ 1, true ]

supporting information:

  • npm -v prints: 8.9.4
  • node -v prints:5.8.0
  • npm config get registry prints:
  • Windows, OS X/macOS, or Linux?: MAC OS X

What's the feature?

--PREFIX NOT WOKRING

What problem is the feature intended to solve?

Is the absence of this feature blocking you or your team? If so, how?

Build system having multiple module which need to be prefix while running the npm ci.

Is this a feature you're prepared to implement, with support from the npm CLI team?

YES

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant