小编use*_*016的帖子

安装Gulp的NPM错误:错误:ENOENT,lstat

我在跑:

  • Ubuntu 14.04
  • 节点v0.10.25
  • NPM v 1.3

通过apt-get install安装NPM.我尝试安装Gulp的那一刻(参见代码片段中的命令)我得到了这些失败.我已经尝试过'npm cache clean',添加.npmignore文件并添加package.json文件.到目前为止没有任何工作.

有任何想法吗?

sudo npm install gulp gulp-sass gulp-autoprefixer --save-dev

> v8flags@1.0.8 install /home/me/node_modules/gulp/node_modules/v8flags
> node fetch.js

sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
 
npm http GET https://registry.npmjs.org/once/-/once-1.3.1.tgz
npm http 200 https://registry.npmjs.org/once/-/once-1.3.1.tgz
npm ERR! weird error 127
npm ERR! tar pack Error reading /home/me/tmp/npm-9540-2Uzl7SBx/1422536234106-0.37079049041494727/package
npm ERR! addLocalDirectory Could not pack "/home/me/tmp/npm-9540-2Uzl7SBx/1422536234106-0.37079049041494727/package" …
Run Code Online (Sandbox Code Playgroud)

npm gulp

6
推荐指数
1
解决办法
5649
查看次数

如何每小时重启一次服务?

我有一项服务,我需要每小时重新启动一次.我正在使用Ubuntu 12.04 LTS,我似乎并没有找到适合基于前缀时间设置重新启动服务的脚本.如何通过脚本自动重启服务?

linux bash shell ubuntu startup

3
推荐指数
1
解决办法
7910
查看次数

标签 统计

bash ×1

gulp ×1

linux ×1

npm ×1

shell ×1

startup ×1

ubuntu ×1