[BUG] symlinks for bin files are not created in workspaces using npm 7 on node 14 on Windows Server #2732
Labels
Bug
thing that needs fixing
platform:windows
is Windows-specific
Priority 1
high priority issue
Release 7.x
work is associated with a specific npm 7 release
Milestone
Current Behavior:
When using the new workspaces functionality from npm 7 on node 14 on Windows, symlinks aren't always created for
bin
files.This works as expected on node 15, and on Linux/Mac OS on node 14 and node 15.
I've put a demo repo together that shows the problem.
It has one package in its workspace that uses
tape
to run a test. Runningnpm test
in the root of the repo lists the contents of thenode_modules/.bin
folder and then tries to run the test script in the sub-package.On node 15, it works:
On node 14 it does not:
E.g. on node 15, a symlink is created at
node_modules/.bin/tape
on node 14 it is not created.Tediously this all works locally with Windows 10 - it may be related to Windows Server, version 1809.
Expected Behavior:
It should work on node 14 on Windows.
Steps To Reproduce:
See the travis build: https://travis-ci.org/github/achingbrain/npm7-node14-workspaces-windows/builds/759627000
Environment:
The text was updated successfully, but these errors were encountered: