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