Cli: [BUG] <All runners/plugins are externally being added outside node_modules npm install>

Created on 17 Apr 2020  Â·  15Comments  Â·  Source: npm/cli

What / Why

  • Whenever I start new project or lets say i clone rep from gitHub, run npm install --> all modules are being installed in a root folder= outside node_modules folder looking like a mess and no way to run tests

When

Examples

  • Whenever I run npm installor any other command to add new dependencies, plugins (npm i --save-dev @wdio/cli OR npx wdio config -y
  • Whenever I run this commands in terminal

Where

Examples

  • WebStorm by JetBrains in Terminal (whatever terminal I use)

How

Current Behavior

  • All files after npm install or other code are installed outside, it is like 40-60 files including README.md, * *package.json etc. I have node, npm of latest versions. I would attach the result on terminal or send Terminal log here at the end.

Steps to Reproduce

  • clone projec from GitHub, npm init -y, npm i --save-dev @wdio/cli

Expected Behavior

after npm installyou know better how it should be, I should have readme.md, package.json and wdio.config.js and very few more but not 40-60 files in the root folder.

Who



  • n/a

References


Log from Terminal:
Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=8.0.0 <10.0.0"} (current: {"node":"12.16.2","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN @wdio/[email protected] requires a peer of @wdio/cli@^6.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\abbrev):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\abbrev' -> 'C:\Users\cdtilestone\ps\node_modules\fsevents
\node_modules.abbrev.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\ansi-regex):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\ansi-regex' -> 'C:\Users\cdtilestone\ps\node_modules\fsev
ents\node_modules.ansi-regex.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\aproba):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\aproba' -> 'C:\Users\cdtilestone\ps\node_modules\fsevents
\node_modules.aproba.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\balanced-match):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\balanced-match' -> 'C:\Users\cdtilestone\ps\node_modules\
fsevents\node_modules.balanced-match.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\chownr):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\chownr' -> 'C:\Users\cdtilestone\ps\node_modules\fsevents
\node_modules.chownr.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\code-point-at):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\code-point-at' -> 'C:\Users\cdtilestone\ps\node_modules\f
sevents\node_modules.code-point-at.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\concat-map):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\concat-map' -> 'C:\Users\cdtilestone\ps\node_modules\fsev
ents\node_modules.concat-map.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\console-control-strings):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\console-control-strings' -> 'C:\Users\cdtilestone\ps\node
_modules\fsevents\node_modules.console-control-strings.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\core-util-is):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\core-util-is' -> 'C:\Users\cdtilestone\ps\node_modules\fs
events\node_modules.core-util-is.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\deep-extend):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\deep-extend' -> 'C:\Users\cdtilestone\ps\node_modules\fse
vents\node_modules.deep-extend.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\delegates):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\delegates' -> 'C:\Users\cdtilestone\ps\node_modules\fseve
nts\node_modules.delegates.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\detect-libc):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\detect-libc' -> 'C:\Users\cdtilestone\ps\node_modules\fse
vents\node_modules.detect-libc.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\fs.realpath):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\fs.realpath' -> 'C:\Users\cdtilestone\ps\node_modules\fse
vents\node_modules.fs.realpath.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\has-unicode):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\has-unicode' -> 'C:\Users\cdtilestone\ps\node_modules\fse
vents\node_modules.has-unicode.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\inherits):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\inherits' -> 'C:\Users\cdtilestone\ps\node_modules\fseven
ts\node_modules.inherits.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\ini):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\ini' -> 'C:\Users\cdtilestone\ps\node_modules\fsevents\no
de_modules.ini.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\isarray):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\isarray' -> 'C:\Users\cdtilestone\ps\node_modules\fsevent
s\node_modules.isarray.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\minimist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\minimist' -> 'C:\Users\cdtilestone\ps\node_modules\fseven
ts\node_modules.minimist.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\ms):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\ms' -> 'C:\Users\cdtilestone\ps\node_modules\fsevents\nod
e_modules.ms.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\npm-normalize-package-bin):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\npm-normalize-package-bin' -> 'C:\Users\cdtilestone\ps\no
de_modules\fsevents\node_modules.npm-normalize-package-bin.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\number-is-nan):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\number-is-nan' -> 'C:\Users\cdtilestone\ps\node_modules\f
sevents\node_modules.number-is-nan.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\object-assign):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\object-assign' -> 'C:\Users\cdtilestone\ps\node_modules\f
sevents\node_modules.object-assign.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\os-homedir):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\os-homedir' -> 'C:\Users\cdtilestone\ps\node_modules\fsev
ents\node_modules.os-homedir.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\os-tmpdir):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\os-tmpdir' -> 'C:\Users\cdtilestone\ps\node_modules\fseve
nts\node_modules.os-tmpdir.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\path-is-absolute):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\path-is-absolute' -> 'C:\Users\cdtilestone\ps\node_module
s\fsevents\node_modules.path-is-absolute.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\process-nextick-args):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\process-nextick-args' -> 'C:\Users\cdtilestone\ps\node_mo
dules\fsevents\node_modules.process-nextick-args.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\safe-buffer):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\safe-buffer' -> 'C:\Users\cdtilestone\ps\node_modules\fse
vents\node_modules.safe-buffer.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\safer-buffer):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\safer-buffer' -> 'C:\Users\cdtilestone\ps\node_modules\fs
events\node_modules.safer-buffer.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\sax):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\sax' -> 'C:\Users\cdtilestone\ps\node_modules\fsevents\no
de_modules.sax.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\semver):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\semver' -> 'C:\Users\cdtilestone\ps\node_modules\fsevents
\node_modules.semver.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\set-blocking):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\set-blocking' -> 'C:\Users\cdtilestone\ps\node_modules\fs
events\node_modules.set-blocking.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\signal-exit):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\signal-exit' -> 'C:\Users\cdtilestone\ps\node_modules\fse
vents\node_modules.signal-exit.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\strip-json-comments):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\strip-json-comments' -> 'C:\Users\cdtilestone\ps\node_mod
ules\fsevents\node_modules.strip-json-comments.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\util-deprecate):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\util-deprecate' -> 'C:\Users\cdtilestone\ps\node_modules\
fsevents\node_modules.util-deprecate.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\wrappy):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\wrappy' -> 'C:\Users\cdtilestone\ps\node_modules\fsevents
\node_modules.wrappy.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents\node_modules\yallist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\cdtilestone\ps\node_modules\fsevents\node_modules\yallist' -> 'C:\Users\cdtilestone\ps\node_modules\fsevent
s\node_modules.yallist.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\mocha\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\@wdio\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 761 packages from 439 contributors in 114.541s

Bug Release 6.x

Most helpful comment

The prefix config is treated a little bit special. The value in any .npmrc file is treated as the _global_ install target. If that's where your things are going for _local_ installs, then something weird is going on. If it's specified on the cli with an explicit argument, then the value given is used as the prefix for local installs as well. Otherwise, local installs always walk up the folder tree until they find either a package.json file or node_modules folder.

In the output you pasted, I see it's trying to put stuff in C:\Users\cdtilestone\ps\node_modules\... Do you have things in there after installation? Is C:\Users\cdtilestone\ps\ your project folder?

What happens if you do npm install abbrev? Do you get an abbrev.js in the current folder? (I ask this because I'm thinking it might be a weird behavior of a pre/post-install script from one of the packages being loaded.)

All 15 comments

What in ~/.npmrc?

I don't see it inside the project folder at all, I've found it here C:Program Filesnodejsnode_modulesnpm, but I don't know what is inside and how to check and it is 0 KB. I usually don't create it myself. Can you help me what is next?

ah, you're on windows. what does npm config get prefix say, in your project dir?

yes, Windows. This command just populate my project Path that is it

What's the exact value it returns

$ npm config get prefix
C:UserscdtilestonePASV-UI

ok, so that's the problem - it should be returning the directory in which node is installed. Maybe try npm config edit and make sure there's no "prefix" line?

wow, it opened .npmrc in Notepad:
;;;;
; npm userconfig file
; this is a simple ini-formatted file
; lines that start with semi-colons are comments.
; read npm help config for help on the various options
;;;;

script-shell=C:Program Filesgitbinbash.exe
prefix=C:UserscdtilestonePASV-UI

;;;;
; all options with default values
;;;;
; access=null

; allow-same-version=false

; always-auth=false

; also=null

; audit=true

; audit-level=low

; auth-type=legacy

; before=null

; bin-links=true

; browser=null

; ca=null

; cafile=undefined

; cache=C:UserscdtilestoneAppDataRoamingnpm-cache

; cache-lock-stale=60000

; cache-lock-retries=10

; cache-lock-wait=10000

; cache-max=null

; cache-min=10

; cert=null

; cidr=null

; color=true

; depth=null

; description=true

; dev=false

; dry-run=false

; editor=notepad.exe

; engine-strict=false

; force=false

; format-package-lock=true

; fund=true

; fetch-retries=2

; fetch-retry-factor=10

; fetch-retry-mintimeout=10000

; fetch-retry-maxtimeout=60000

; git=git

; git-tag-version=true

; commit-hooks=true

; global=false

; globalconfig=C:UserscdtilestonePASV-UIetcnpmrc

; global-style=false

; group=0

; ham-it-up=false

; heading=npm

; if-present=false

; ignore-prepublish=false

; ignore-scripts=false

; init-module=C:Userscdtilestone.npm-init.js

; init-author-name=

; init-author-email=

; init-author-url=

; init-version=1.0.0

; init-license=ISC

; json=false

; key=null

; legacy-bundling=false

; link=false

; local-address=undefined

; loglevel=notice

; logs-max=10

; long=false

; maxsockets=50

; message=%s

; metrics-registry=null

; node-options=null

; node-version=12.16.2

; offline=false

; onload-script=null

; only=null

; optional=true

; otp=null

; package-lock=true

; package-lock-only=false

; parseable=false

; prefer-offline=false

; prefer-online=false

; prefix=C:Program Filesnodejs

; preid=

; production=false

; progress=true

; proxy=null

; https-proxy=null

; noproxy=null

; user-agent=npm/{npm-version} node/{node-version} {platform} {arch} {ci}

; read-only=false

; rebuild-bundle=true

; registry=https://registry.npmjs.org/

; rollback=true

; save=true

; save-bundle=false

; save-dev=false

; save-exact=false

; save-optional=false

; save-prefix=^

; save-prod=false

; scope=

; script-shell=null

; scripts-prepend-node-path=warn-only

; searchopts=

; searchexclude=null

; searchlimit=20

; searchstaleness=900

; send-metrics=false

; shell=C:WINDOWSsystem32cmd.exe

; shrinkwrap=true

; sign-git-commit=false

; sign-git-tag=false

; sso-poll-frequency=500

; sso-type=oauth

; strict-ssl=true

; tag=latest

; tag-version-prefix=v

; timing=false

; tmp=C:UsersCDTILE~1AppDataLocalTemp

; unicode=false

; unsafe-perm=true

; update-notifier=true

; usage=false

; user=0

; userconfig=C:Userscdtilestone.npmrc

; umask=0

; version=false

; versions=false

; viewer=browser

; _exit=true

; globalignorefile=C:UserscdtilestonePASV-UIetcnpmignore

See ; prefix=C:\Program Files\nodejs? that shouldn't be there, i think. if you delete it, what does npm config get prefix print out?

whenever I delete this line from Notepad and then save--> close file--> npm config get prefix it again gives project path. I run again npm config edit --> the .npmrc file again shows this ; prefix=C:\Program Files\nodejs. So i don't know why it still contains this line

Jordan, even if this works, how to fix it so i don't go and delete this line etc? Any idea?

Not really sure :-/ hopefully someone who uses windows can help.

Is it easier to work on Apple with web storm/node? In case I will have
option to switch/choose? Thanks for your help, man!

On Fri, 17 Apr 2020 at 00:22, Jordan Harband notifications@github.com
wrote:

Not really sure :-/ hopefully someone who uses windows can help.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/npm/cli/issues/1171#issuecomment-615066280, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AOAJXMMHWEEB5RIM4ZJW6A3RM7YTXANCNFSM4MKLLM3Q
.

The prefix config is treated a little bit special. The value in any .npmrc file is treated as the _global_ install target. If that's where your things are going for _local_ installs, then something weird is going on. If it's specified on the cli with an explicit argument, then the value given is used as the prefix for local installs as well. Otherwise, local installs always walk up the folder tree until they find either a package.json file or node_modules folder.

In the output you pasted, I see it's trying to put stuff in C:\Users\cdtilestone\ps\node_modules\... Do you have things in there after installation? Is C:\Users\cdtilestone\ps\ your project folder?

What happens if you do npm install abbrev? Do you get an abbrev.js in the current folder? (I ask this because I'm thinking it might be a weird behavior of a pre/post-install script from one of the packages being loaded.)

@isaacs I think I've got it, I've followed advises of @ljharb, after that I've uninstalled node, npm with WebStorm 2020.1, re-installed node and older version of WebStorm. So far it works. I may try to follow your steps but afraid to break something:)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

darcyclarke picture darcyclarke  Â·  3Comments

goldingdamien picture goldingdamien  Â·  4Comments

MadhuriGurumurthy11 picture MadhuriGurumurthy11  Â·  3Comments

1000i100 picture 1000i100  Â·  3Comments

theADAMJR picture theADAMJR  Â·  3Comments