【发布时间】:2018-10-05 13:28:02
【问题描述】:
我有 Windows 10,节点 8.11.1。我想安装foundation-cli globaly(因为本地它也不起作用)。但是安装不起作用。我在任何控制台(powerShell、gitBash、jetBrains)上都有这些错误:
PS C:\> npm install --global foundation-cli
npm WARN deprecated bower@1.8.4: 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 graceful-fs@3.0.11: 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
我怀疑问题出在 python 路径上。我有微软构建工具,我试过了:
npm config set python "C:\python27\python.exe"
但这无济于事。没发生什么事。 你有什么想法吗?
【问题讨论】:
标签: python npm zurb-foundation frontend