kizoso
kizoso

Reputation: 1246

npm install --global foundation-cli doesn't work

I have windows 10, node 8.11.1. I want to install foundation-cli globaly (as local it doesn't work too). But the instalation doesn't work. I have these errors on any console (powerShell, gitBash, jetBrains):

PS C:\> npm install --global foundation-cli
npm WARN deprecated [email protected]: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm ERR! path C:\Users\user\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\npm\node_modules\ansistyles
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\user\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\npm\node_modules\ansistyles' -> 'C:\Users\user\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\npm\node_modules\.ansistyles.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-10-05T12_43_07_631Z-debug.log

I suspect that here the problem is with the python path. I've got microsoft build tools, I tried :

npm config set python "C:\python27\python.exe"

But it doesn't help. Nothing happens. Have you got any ideas?

Upvotes: 0

Views: 305

Answers (1)

user753676
user753676

Reputation:

this has probably nothing to do with Python.

What does npm --version output? If it is not 6.4.1 try npm i -g npm@latest to upgrade npm.

Also try to disable any active antivirus scanner during the installation.

Upvotes: 1

Related Questions