Prepend node path error

yarn, setup, error – Mar 10 2019

I will sometimes see this error appear in my console. I just don't like seeing it appear. I want the npm WARN out of my terminal window. Follow this solution.

• • •

Prepend Node Path Error

npm WARN lifecycle The node binary used for scripts is
...
Use the `--scripts-prepend-node-path` option to include the path
for the node binary npm was executed with.

I would like the npm WARN to be removed out of my terminal window.

Follow the solution below

Find the .npmrc file that is located within the root of that directory. If you don’t have a .npmrc file, just create one.

Then paste in (as shown):

Paste in prepend nodepath

scripts-prepend-node-path=true

Save the file and then re-run yarn and you should not see that WARN error appear in your terminal window.

Follow on Twitter
Follow on Github