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

CLI prints a bunch of node warnings on Node.js 14.0.0 #5203

Closed
bajtos opened this issue Apr 23, 2020 · 5 comments
Closed

CLI prints a bunch of node warnings on Node.js 14.0.0 #5203

bajtos opened this issue Apr 23, 2020 · 5 comments
Labels

Comments

@bajtos
Copy link
Member

bajtos commented Apr 23, 2020

Steps to reproduce

$ nvm install 14.0.0.
Downloading and installing node v14.0.0
(...)
Now using node v14.0.0 (npm v6.14.4)

$ npm i -g @loopback/cli
(...)
+ @loopback/[email protected]
added 761 packages from 392 contributors in 78.492s

$ lb4 example todo

Current Behavior

A lot of warnings are printed

(node:26892) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:26892) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:26892) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

Expected Behavior

No warnings are printed.

While this bug is specifically describing Node warnings about "Accessing non-existent property", it would be eventually nice to get rid of request dependency too.

Link to reproduction sandbox

n/a

Additional information

$ node -e 'console.log(process.platform, process.arch, process.versions.node)'
darwin x64 14.0.0

Related Issues

See Reporting Issues for more tips on writing good issues

@bajtos bajtos added the bug label Apr 23, 2020
@dhmlau dhmlau added the 2020Q3 label Apr 23, 2020
@raymondfeng
Copy link
Contributor

See nodejs/node#29935

It might be related to shelljs.

npm ls shelljs
[email protected] /Users/rfeng/Projects/loopback4/loopback-next
└─┬ [email protected]
  └─┬ [email protected]
    └── [email protected] 

@raymondfeng
Copy link
Contributor

Running NODE_OPTIONS="--trace-warnings" lb4 confirms that shelljs is the root cause.

@raymondfeng
Copy link
Contributor

Duplicate of shelljs/shelljs#991

@raymondfeng raymondfeng marked this as a duplicate of shelljs/shelljs#991 Apr 23, 2020
@deepakrkris
Copy link
Contributor

there is no immediate action available for this, will have to wait for a new release of shelljs

@frbuceta
Copy link
Contributor

If you allow me, I will close this issue. With the maintenance of the package-lock's it has been fixed

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

No branches or pull requests

5 participants