0
npm install -g grunt-cli //done successfully
npm install grunt --save --only=dev
給出以下錯誤本地咕嚕安裝提示錯誤
(node:11000) fs: re-evaluating native module sources is not supported. If
you are using the graceful
-fs module, please update it to a more recent version.
npm WARN prefer global [email protected] should be installed with -g
[email protected] C:\Users\Live\Desktop\node grunt\final
`-- (empty)
npm WARN [email protected] No repository field.
npm ERR! code 1
試圖卸載咕嚕-CLI,清潔NPM緩存,然後再重新安裝,但仍然問題仍然存在。
你正在運行什麼節點和npm版本? 'node -v'和'npm -v'的結果是什麼? – lumio
node - v6.11.2 ..... npm - 3.6.0 –
好的。嘗試更新你的npm:'npm update -g npm'。如果這不起作用,請刪除本地'node_modules'文件夾並執行新的'npm install' - 順便說一句...'grunt-cli'和'grunt'不是同一個東西 – lumio