Closed shivangg closed 5 years ago
Able to resolve this by adding the scripts-prepend-node-path=auto
line in the .npmrc
file. Should I open a PR for this?
So it's in the .npmrc
file of all the packages, right?
If you want, go for it but if you are in the middle of something (guide, trying something, etc.) don't spend time on this right now.
@molant No, I just had to add this to the .npmrc
at the root folder (just under hint
)
Awesome! Do a PR then @shivangg
🐛 Bug report
Description
While running
yarn test
, according to the Webhint contributor guide, after installing webhintmaster
usingyarn
, it shows the warning that the node binary used byyarn
andnpm
are different. See raw output for more info.I am using node through
nvm
only.Environment
hint
version: NANode.js
version:v11.14.0
Yarn
version:1.15.2
nvm
version:0.34.0
which node
:/home/shivangg/.nvm/versions/node/v11.14.0/bin/node
which npm
:/home/shivangg/.nvm/versions/node/v11.14.0/bin/npm
OS
: Ubuntu 16.04webhint
configurationwebhint’s configuration
```js ```Debug output
webhint’s raw output
```bash > @hint/hint-axe@2.1.2 build /home/shivangg/Pesto/week9/hint/packages/hint-axe > npm-run-all build:* npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1555020581681-0.03967647915236805/node but npm is using /home/shivangg/.nvm/versions/node/v11.14.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with. > @hint/hint-axe@2.1.2 build:assets /home/shivangg/Pesto/week9/hint/packages/hint-axe > cpx "./{src,tests}/**/{!(*.ts),.!(ts)}" dist npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1555020581681-0.03967647915236805/node but npm is using /home/shivangg/.nvm/versions/node/v11.14.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with. ```