我是Laravel的新手,所以希望能得到一些帮助。我正在学习Laracasts上的 如何管理CSS和JS。
当我尝试运行npm install
时,会收到一些警告信息,例如:
npm WARN install Couldn't install optional dependency: Unsupported
我也尝试使用npm install --global gulp
安装gulp,但我得到了以下提示:
npm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
基本上,如果我尝试运行gulp
命令,就会从命令行得到No command 'gulp' found
。
有什么想法如何解决这个问题吗?
额外的信息:我在虚拟机Ubuntu 14.04上,我的node.js和npm版本分别为:
node -v
v5.4.1
npm -v
3.3.12
这是我尝试运行
npm install --global gulp
时遇到的错误。请看图片: 请看图片: