Skip to content
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

[BUG] Different behavior Windows vs WSL (Linux) #6178

Closed
2 tasks done
BobFrankston opened this issue Feb 16, 2023 · 4 comments
Closed
2 tasks done

[BUG] Different behavior Windows vs WSL (Linux) #6178

BobFrankston opened this issue Feb 16, 2023 · 4 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 9.x work is associated with a specific npm 9 release

Comments

@BobFrankston
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

[npm 9.4.2]

In Windows

npm instal ..\..\..\email\MailApps\mailit

ENOENT: no such file or directory, open 'Y:\dev\homecontrol\utils\dbtick\node_modules\mlconfig\package.json'
``

In WSL

npm install ../../../email//MailApps/mailit/


works fine

### Expected Behavior

It should work the same in both cases

### Steps To Reproduce

1. In this environment...
2. With this config...
3. Run '...'
4. See error...


### Environment

This is closely related to bug #6033

mailit package.json contains "**file: ../mlconfig**

it installed as if I had specified --include-links even though I hadn't.

when I uninstalled it and reinstalled it using "**npm link ..\mlconfig**" everything worked.

I'm having trouble creating a simple example, but I can include the log files.

**Mail it package.json**

{
"name": "mailit",
"version": "1.0.12",
"description": "",
"main": "index.js",
"scripts": {
"test": "node cli.js -to test@bob.ma -from test@bob.ma -subject 'this-is-a-test' -body 'test-body'"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@bobfrankston/rmfc": "^1.0.142",
"@types/quoted-printable": "^0.2.2",
"@types/utf8": "^2.1.6",
"mlconfig": "file:../mlconfig",
"quoted-printable": "^1.0.1",
"tslib": "^2.3.1",
"utf8": "^3.0.0"
},
"type": "module",
"devDependencies": {
"@types/node": "^16.11.6"
}
}


Windows:

0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using npm@9.4.0
2 info using node@v19.6.0
3 timing npm:load:whichnode Completed in 2ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 1ms
8 timing config:load:env Completed in 1ms
9 timing config:load:file:y:\dev\homecontrol\utils\dbtick.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:C:\Users\Bob.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:C:\Users\Bob\AppData\Roaming\npm\etc\npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 0ms
16 timing config:load Completed in 6ms
17 timing npm:load:configload Completed in 6ms
18 timing npm:load:mkdirpcache Completed in 1ms
19 timing npm:load:mkdirplogs Completed in 0ms
20 verbose title npm install ......\email\MailApps\mailit
21 verbose argv "install" "..\..\..\email\MailApps\mailit"
22 timing npm:load:setTitle Completed in 1ms
23 timing config:load:flatten Completed in 2ms
24 timing npm:load:display Completed in 2ms
25 verbose logfile logs-max:10 dir:C:\Users\Bob\AppData\Local\npm-cache_logs\2023-02-16T19_48_56_846Z-
26 verbose logfile C:\Users\Bob\AppData\Local\npm-cache_logs\2023-02-16T19_48_56_846Z-debug-0.log
27 timing npm:load:logFile Completed in 8ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 20ms
31 timing arborist:ctor Completed in 0ms
32 silly logfile start cleaning logs, removing 6 files
33 timing idealTree:init Completed in 21ms
34 verbose shrinkwrap failed to load node_modules/.package-lock.json missing from lockfile: ../../../email/MailApps/mailit/node_modules/ansi-styles
35 silly logfile done cleaning log files
36 timing idealTree:userRequests Completed in 6ms
37 silly idealTree buildDeps
38 silly fetch manifest mailit@file:../../../email/MailApps/mailit
39 silly placeDep ROOT mailit@1.0.12 REPLACE for: dbtick@1.0.0 want: file:../../../email/MailApps/mailit
40 silly fetch manifest @types/quoted-printable@^0.2.2
41 silly fetch manifest @types/utf8@^2.1.6
42 silly fetch manifest mlconfig@file:../mlconfig
43 silly fetch manifest quoted-printable@^1.0.1
44 silly fetch manifest utf8@^3.0.0
45 http fetch GET 200 https://registry.npmjs.org/@types%2fquoted-printable 38ms (cache hit)
46 http fetch GET 200 https://registry.npmjs.org/utf8 36ms (cache hit)
47 http fetch GET 200 https://registry.npmjs.org/quoted-printable 38ms (cache hit)
48 http fetch GET 200 https://registry.npmjs.org/@types%2futf8 39ms (cache hit)
49 timing idealTree:#root Completed in 49ms
50 silly placeDep ROOT @types/quoted-printable@0.2.2 OK for: mailit@1.0.12 want: ^0.2.2
51 silly placeDep ROOT @types/utf8@2.1.6 OK for: mailit@1.0.12 want: ^2.1.6
52 silly placeDep node_modules/mailit mlconfig@ OK for: mailit@1.0.12 want: file:../mlconfig
53 silly placeDep ROOT quoted-printable@1.0.1 OK for: mailit@1.0.12 want: ^1.0.1
54 silly placeDep ROOT utf8@3.0.0 OK for: mailit@1.0.12 want: ^3.0.0
55 silly fetch manifest utf8@^2.1.0
56 timing idealTree:node_modules/mailit Completed in 8ms
57 timing idealTree:node_modules/@types/quoted-printable Completed in 0ms
58 timing idealTree:node_modules/@types/utf8 Completed in 0ms
59 silly placeDep node_modules/quoted-printable utf8@2.1.2 OK for: quoted-printable@1.0.1 want: ^2.1.0
60 timing idealTree:node_modules/quoted-printable Completed in 1ms
61 timing idealTree:node_modules/utf8 Completed in 0ms
62 timing idealTree:node_modules/mailit/node_modules/mlconfig Completed in 0ms
63 timing idealTree:node_modules/quoted-printable/node_modules/utf8 Completed in 0ms
64 timing idealTree:buildDeps Completed in 58ms
65 timing idealTree:fixDepFlags Completed in 1ms
66 timing idealTree Completed in 86ms
67 timing command:install Completed in 91ms
68 verbose stack Error: ENOENT: no such file or directory, open 'y:\dev\homecontrol\utils\dbtick\node_modules\mlconfig\package.json'
69 verbose cwd y:\dev\homecontrol\utils\dbtick
70 verbose Windows_NT 10.0.22621
71 verbose node v19.6.0
72 verbose npm v9.4.0
73 error code ENOENT
74 error syscall open
75 error path y:\dev\homecontrol\utils\dbtick\node_modules\mlconfig/package.json
76 error errno -4058
77 error enoent ENOENT: no such file or directory, open 'y:\dev\homecontrol\utils\dbtick\node_modules\mlconfig\package.json'
78 error enoent This is related to npm not being able to find a file.
78 error enoent
79 verbose exit -4058
80 timing npm Completed in 126ms
81 verbose unfinished npm timer reify 1676576936879
82 verbose unfinished npm timer reify:loadTrees 1676576936881
83 verbose code -4058
84 error A complete log of this run can be found in:
84 error C:\Users\Bob\AppData\Local\npm-cache_logs\2023-02-16T19_48_56_846Z-debug-0.log


the WSL version is essentially identical until line 39.

0 verbose cli /usr/local/bin/node /usr/local/bin/npm
1 info using npm@9.4.2
2 info using node@v19.6.0
3 timing npm:load:whichnode Completed in 2ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/mnt/y/dev/homecontrol/utils/dbtick/.npmrc Completed in 0ms
10 timing config:load:project Completed in 8ms
11 timing config:load:file:/home/bobf/.npmrc Completed in 3ms
12 timing config:load:user Completed in 3ms
13 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
14 timing config:load:global Completed in 0ms
15 timing config:load:setEnvs Completed in 0ms
16 timing config:load Completed in 16ms
17 timing npm:load:configload Completed in 16ms
18 timing npm:load:mkdirpcache Completed in 1ms
19 timing npm:load:mkdirplogs Completed in 0ms
20 verbose title npm install ../../../email/MailApps/mailit
21 verbose argv "install" "../../../email/MailApps/mailit"
22 timing npm:load:setTitle Completed in 1ms
23 timing config:load:flatten Completed in 1ms
24 timing npm:load:display Completed in 3ms
25 verbose logfile logs-max:10 dir:/home/bobf/.npm/_logs/2023-02-16T19_27_44_978Z-
26 verbose logfile /home/bobf/.npm/_logs/2023-02-16T19_27_44_978Z-debug-0.log
27 timing npm:load:logFile Completed in 5ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 29ms
31 timing arborist:ctor Completed in 1ms
32 silly logfile start cleaning logs, removing 1 files
33 silly logfile done cleaning log files
34 timing idealTree:init Completed in 28ms
35 timing idealTree:userRequests Completed in 26ms
36 silly idealTree buildDeps
37 verbose shrinkwrap failed to load node_modules/.package-lock.json missing from node_modules: ../../../email/MailApps/mailit
38 silly placeDep ROOT mailit@1.0.12 OK for: dbtick@1.0.0 want: file:../../../email/MailApps/mailit
39 timing idealTree:#root Completed in 8ms
40 timing idealTree:node_modules/mailit Completed in 0ms
41 timing idealTree:buildDeps Completed in 10ms
42 timing idealTree:fixDepFlags Completed in 0ms
43 timing idealTree Completed in 66ms
44 timing reify:loadTrees Completed in 128ms
45 timing reify:diffTrees Completed in 2ms
46 silly reify moves {}
47 timing reify:retireShallow Completed in 1ms
48 timing reify:createSparse Completed in 0ms
49 timing reify:loadBundles Completed in 0ms
50 silly audit bulk request {
50 silly audit mailit: [ '1.0.12' ],
50 silly audit '@bobfrankston/rmfc': [ '1.0.142' ],
50 silly audit '@types/follow-redirects': [ '1.14.1' ],
50 silly audit '@types/node': [ '18.13.0' ],
50 silly audit 'ansi-styles': [ '4.3.0' ],
50 silly audit chalk: [ '4.1.2' ],
50 silly audit 'color-convert': [ '2.0.1' ],
50 silly audit 'color-name': [ '1.1.4' ],
50 silly audit esm: [ '3.2.25' ],
50 silly audit 'has-flag': [ '4.0.0' ],
50 silly audit 'iconv-lite': [ '0.6.3' ],
50 silly audit 'safer-buffer': [ '2.1.2' ],
50 silly audit 'supports-color': [ '7.2.0' ],
50 silly audit tslib: [ '2.5.0' ]
50 silly audit }
51 timing reifyNode:node_modules/mailit Completed in 48ms
52 timing reify:unpack Completed in 49ms
53 timing reify:unretire Completed in 0ms
54 timing build:queue Completed in 0ms
55 timing build:deps Completed in 1ms
56 timing build:queue Completed in 4ms
57 timing build:links Completed in 4ms
58 timing build Completed in 5ms
59 timing reify:build Completed in 6ms
60 timing reify:trash Completed in 0ms
61 timing reify:save Completed in 24ms
62 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 457ms
63 timing auditReport:getReport Completed in 460ms
64 silly audit report {}
65 timing auditReport:init Completed in 0ms
66 timing reify:audit Completed in 460ms
67 timing reify Completed in 597ms
68 silly ADD node_modules/mailit
69 timing command:install Completed in 603ms
70 verbose exit 0
71 timing npm Completed in 648ms
72 info ok

@BobFrankston BobFrankston added Bug thing that needs fixing Needs Triage needs review for next steps Release 9.x work is associated with a specific npm 9 release labels Feb 16, 2023
@nlf
Copy link
Contributor

nlf commented Feb 16, 2023

can you try updating to npm@9.5.0 and see if this works better there?

@BobFrankston
Copy link
Author

OK, now that I understand it better, I can probably do a reply but rushed for time, and I think the info is sufficient -- link to a package with a link but installed as a copy. This confuses the Windows installer but not the Linux one.

@BobFrankston
Copy link
Author

Thanks. I just updated to npm 9.5.0, and it worked! I would've upgraded but apparently, my upgrading tools were not cooperating.

Sorry about the confusion.

@nlf
Copy link
Contributor

nlf commented Feb 16, 2023

happy to hear it worked!

i'm going to go ahead and close this, but feel free to reopen it if you need to

@nlf nlf closed this as completed Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 9.x work is associated with a specific npm 9 release
Projects
None yet
Development

No branches or pull requests

2 participants