我有Node.js的问题并将文件上传到服务器.要将文件上传到服务器,请使用此插件.当开始上传到服务器的文件时,Node.js进程崩溃并显示错误:
错误:ENOSPC.
服务器代码不运行.
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 7.9G 4.1G 3.5G 55% /
udev 288M 8.0K 288M 1% /dev
tmpfs 119M 168K 118M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 296M 0 296M 0% /run/shm
/dev/xvdf 9.9G 3.0G 6.5G 32% /vol
overflow 1.0M 1.0M 0 100% /tmp
Run Code Online (Sandbox Code Playgroud) 我刚刚第一次安装Node.js在我的Ubuntu 14.04操作系统上.我也安装了npm.我的安装过程的下一步是安装nodemon.这一切都很好.
但是,当我nodemon通过输入nodemon app.js我的命令行运行时,我收到以下错误...
[nodemon] 1.8.1
[nodemon] to restart at any time, enterrs
[nodemon] watching: *.*
[nodemon] startingnode app.js
[nodemon] Internal watch failed: watch ENOSPC
在命令行下面的错误...
alopex@Alopex:~/Desktop/coding_dojo/week-9/javascript/node/testing_node$ Hello World
Run Code Online (Sandbox Code Playgroud)
为什么会这样?这是nodemon的正常行为吗?如果没有,我该如何解决?
旁注......
1)app.js是一个内部的Javascript文件console.log(111).
2)node版本是v0.10.25
3)npm版本是1.3.10
4)nodemon版本是1.8.1
5)ubuntu版本是...
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
Run Code Online (Sandbox Code Playgroud) 我正在使用nodejs v0.10.26运行Lion 10.9.2
我想在sass文件上设置自动编译,并使用grunt进行实时重新加载,没有什么复杂但是......
运行时grunt watch我收到以下错误
(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.
util.js:35
var str = String(f).replace(formatRegExp, function(x) {
^
RangeError: Maximum call stack size exceeded
Run Code Online (Sandbox Code Playgroud)
这是Gruntfile.js
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
files: {
'assets/css/styles.css': 'assets/sass/styles.scss'
}
}
},
watch: {
all: {
files: 'index.html', // Change this if you are not watching index.html
options: …Run Code Online (Sandbox Code Playgroud) cordova build android给了我以下错误
node_modules/q/q.js:126 throw e; (*error details)
Run Code Online (Sandbox Code Playgroud)
之前已经问过这个问题,但关于PATH和ANDROID_HOME的典型答案对我没有用.
我把它放到代码片段中以避免SO提交问题
export HOME="/Users/rover"
export ANDROID_SDK="$HOME/Documents/Dev/Android/adt-bundle-mac-x86_64-20140702/sdk"
export ANDROID_HOME="$ANDROID_SDK/tools"
export ANDROID_PLATFORM_TOOLS="$ANDROID_SDK/platform-tools"
export PATH="$ANDROID_HOME:$ANDROID_PLATFORM_TOOLS:$ANDROID_SDK/build-tools:$PATH"
export ANT_HOME="/usr/local/bin/ant"
#export PATH="$PATH:$ANT_HOME/bin"
Run Code Online (Sandbox Code Playgroud)
我的环境变量:
$ set | grep"ANDROID\| PATH"
ANDROID_HOME =/Users/rover/Documents/Dev/Android/adt-bundle-mac-x86_64-20140702/sdk/tools ANDROID_PLATFORM_TOOLS =/Users/rover/Documents/Dev/Android/adt-bundle-mac-x86_64-20140702/sdk/platform-tools ANDROID_SDK =/Users/rover/Documents/Dev/Android/adt-bundle-mac-x86_64-20140702/sdk PATH =/Users/rover/Documents/Dev/Android/adt-bundle-mac-x86_64-20140702/SDK /工具:/用户/流动站/文档/开发/安卓/ ADT-束-MAC-x86_64-20140702/SDK /平台的工具:/用户/流动站/文档/开发/安卓/ ADT-束-MAC-x86_64的-20140702/SDK /编译工具:在/ usr/local/bin目录:在/ usr/bin中:/ bin中:/ usr/sbin目录:/ sbin目录中:/ opt/X11/bin中
$ which ant
/usr/local/bin/ant
$ ls /usr/local/bin/ant
/usr/local/bin/ant
$ cordova --version
4.0.0
$ ant -v
Apache Ant(TM) version 1.9.4
Run Code Online (Sandbox Code Playgroud)
我在Mac OSX 10.10(Yosemite)上可能有Java 8的问题.这可能是相关的吗?
$ java -version java version"1.8.0_05"Java(TM)SE运行时环境(版本1.8.0_05-b13)Java HotSpot(TM)64位服务器VM(版本25.5-b02,混合模式)
$ ant …Run Code Online (Sandbox Code Playgroud) 我使用create-react-app样板创建了一个react应用程序,这似乎非常受欢迎,当任何文件发生变化时有时会更新热重载,有时则没有,似乎有最小持续时间或类似的东西,我'使用Ubuntu,节点版本7.0,package.json中的脚本是npm:'react-script start'我缺少的?
我正在尝试关于Typescript的角度2 的官方5 Min快速入门.我按照所有步骤操作,当我运行npm start它时,我My First Angular 2 App在firefox浏览器上弹出了预期的消息.
但是,当我检查控制台时,我发现错误消息:
Error: watch node_modules/angular2/es6/dev/src/common/directives/ng_if.js ENOSPC
Run Code Online (Sandbox Code Playgroud)
我不知道它是否与我之前在npm install项目的根文件夹上运行时收到的警告消息有关:
npm WARN install Couldn't install optional dependency: Unsupported
npm WARN EPACKAGEJSON angular2-quickstart@1.0.0 No description
npm WARN EPACKAGEJSON angular2-quickstart@1.0.0 No repository field.
Run Code Online (Sandbox Code Playgroud)
有人能告诉我我的方法有什么问题吗?更详细的控制台输出如下所示:
> angular2-quickstart@1.0.0 start /home/ubuntu/jsProjects/angular2-quickstart
> concurrent "npm run tsc:w" "npm run lite"
[0]
[0] > angular2-quickstart@1.0.0 tsc:w /home/ubuntu/jsProjects/angular2-quickstart
[0] > tsc -w
[0]
[1]
[1] > angular2-quickstart@1.0.0 lite /home/ubuntu/jsProjects/angular2-quickstart
[1] > lite-server
[1]
[1] [BS] …Run Code Online (Sandbox Code Playgroud) 嗨,我在运行gulp手表时遇到此错误.我在laravel项目中使用vueify.为什么会发生这种情况.这些天它一直很好,今天就来了.
$ gulp watch
[12:56:01] Using gulpfile ~/Documents/web_projects/next-home/gulpfile.js
[12:56:01] Starting 'watch'...
[12:56:01] Starting 'browserify'...
Fetching Browserify Source Files...
- resources/assets/js/app.js
Saving To...
- public/js/app.js
[12:56:02] Finished 'browserify' after 707 ms
[12:56:02] 'watch' errored after 722 ms
[12:56:02] Error: watch /home/bazi/Documents/web_projects/next-home/resources/assets/less/ ENOSPC
at exports._errnoException (util.js:893:11)
at FSWatcher.start (fs.js:1313:19)
at Object.fs.watch (fs.js:1341:11)
at Gaze._watchDir (/home/bazi/Documents/web_projects/next-home/node_modules/gaze/lib/gaze.js:289:30)
at /home/bazi/Documents/web_projects/next-home/node_modules/gaze/lib/gaze.js:358:10
at iterate (/home/bazi/Documents/web_projects/next-home/node_modules/gaze/lib/helper.js:52:5)
at Object.forEachSeries (/home/bazi/Documents/web_projects/next-home/node_modules/gaze/lib/helper.js:66:3)
at Gaze._initWatched (/home/bazi/Documents/web_projects/next-home/node_modules/gaze/lib/gaze.js:354:10)
at Gaze.add (/home/bazi/Documents/web_projects/next-home/node_modules/gaze/lib/gaze.js:177:8)
at new Gaze (/home/bazi/Documents/web_projects/next-home/node_modules/gaze/lib/gaze.js:74:10)
events.js:154
throw er; // Unhandled 'error' event …Run Code Online (Sandbox Code Playgroud) 运行grunt serve在Linux上创建了一个无限循环:
$ grunt serve
Running "watch" task
Waiting...
Warning: watch ENOSPC
Running "watch" task
Waiting...
Warning: watch ENOSPC
...
Run Code Online (Sandbox Code Playgroud)
寻找使其有效的建议.
我的流星应用程序在启动后立即出现错误,其中说:
=> Meteor server running on: http://localhost:3000/
/home/<me>/.meteor/tools/3cba50c44a/tools/run.js:425
throw e;
^
Error: watch ENOSPC
at errnoException (fs.js:806:11)
at FSWatcher.start (fs.js:837:11)
at Object.fs.watch (fs.js:861:11)
at _.extend._startDirectoryWatches (/home/<me>/.meteor/tools/3cba50c44a/tools/watch.js:438:14)
at Array.forEach (native)
at Function._.each._.forEach (/home/<me>/.meteor/tools/3cba50c44a/lib/node_modules/underscore/underscore.js:79:11)
at _.extend._startDirectoryWatches (/home/<me>/.meteor/tools/3cba50c44a/tools/watch.js:422:7)
at new Watcher (/home/<me>/.meteor/tools/3cba50c44a/tools/watch.js:294:8)
at exports.run.startWatching (/home/<me>/.meteor/tools/3cba50c44a/tools/run.js:481:15)
at /home/<me>/.meteor/tools/3cba50c44a/tools/run.js:613:5
at exports.inFiber (/home/<me>/.meteor/tools/3cba50c44a/tools/fiber-helpers.js:24:12)
Run Code Online (Sandbox Code Playgroud)
我只需重新启动流星就可以正常启动.
我在ubuntu 12.10,Meteor 0.6.5.1上,安装的软件包如下:
insecure
preserve-inputs
jquery
http
standard-app-packages
oauth2
accounts-base
oauth
service-configuration
accounts-ui
random
accounts-oauth
accounts-google
Run Code Online (Sandbox Code Playgroud)
有人有想法吗?
非常感谢Philippe
我有应用程序,我正在开始使用,我只是想运行它,但它崩溃了.它使用grunt,运行节点服务器,它是Angular.js应用程序.当我正在运行运行服务器的grunt任务时,当我尝试从浏览器访问应用程序时,我收到来自grunt或节点的警告:
(node) warning: Recursive process.nextTick detected. This will break in the next
version of node. Please use setImmediate for recursive deferral.
Run Code Online (Sandbox Code Playgroud)
很多线条和最终:
util.js:35
var str = String(f).replace(formatRegExp, function(x) {
^
RangeError: Maximum call stack size exceeded Use --force to continue.
Aborted due to warnings.
Run Code Online (Sandbox Code Playgroud)
我尝试在我的应用程序中搜索,process.nextTick但它在node_modules目录中的很多地方 ,而不是在src.
可以删除该警告,以便我可以运行该应用程序吗?我应该用什么代码搜索这个递归调用?
UPDATE
我使用ack并发现这行来自3个地方的这个文件:
$REPO/node_modules/express/node_modules/connect/node_modules/multiparty/node_modules/??readable- stream/node_modules/core-util-is/float.patch
$REPO/node_modules/grunt-browser-sync/node_modules/browser-sync/node_modules/connect/??node_modu les/multiparty/node_modules/readable-stream/node_modules/core-util-is/float.patc??h
/usr/lib/node_modules/bower/node_modules/decompress-zip/node_modules/readable-s??tream/nod e_modules/core-util-is/float.patch
Run Code Online (Sandbox Code Playgroud)
但它不是js文件.
我安装了 nux.js 但它给了我错误。我还将我的 npm 更新到 5.5.1 。我不知道如何修复它。任何人遇到这个错误? https://nuxtjs.org/guide/installation/
错误
Error: watch /home/laravel/Sites/kenneth/nuxt.config.js ENOSPC
at _errnoException (util.js:1019:11)
at FSWatcher.start (fs.js:1383:19)
at Object.fs.watch (fs.js:1409:11)
at createFsWatchInstance (/home/laravel/Sites/kenneth/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/home/laravel/Sites/kenneth/node_modules/chokidar/lib/nodefs-handler.js:80:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/laravel/Sites/kenneth/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at FSWatcher.NodeFsHandler._handleFile (/home/laravel/Sites/kenneth/node_modules/chokidar/lib/nodefs-handler.js:255:21)
at FSWatcher.<anonymous> (/home/laravel/Sites/kenneth/node_modules/chokidar/lib/nodefs-handler.js:473:21)
at FSReqWrap.oncomplete (fs.js:154:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! kenneth@1.0.0 dev: `nuxt`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the kenneth@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is …Run Code Online (Sandbox Code Playgroud) node.js ×6
javascript ×4
gruntjs ×3
android ×1
angular ×1
ant ×1
browserify ×1
cordova ×1
gulp-watch ×1
ionic ×1
less ×1
linux ×1
meteor ×1
node-modules ×1
nuxt.js ×1
reactjs ×1
recursion ×1
ubuntu ×1
vue.js ×1
vuejs2 ×1