Получение ошибки 'node_contextify' с `rails s` - и 'ошибкой неверного запроса' из npm-pipeline-rails при запуске` аудита npm` - PullRequest
0 голосов
/ 12 января 2019

Используя gem npm-pipeline-rails, я пытаюсь запустить rails для компиляции ресурсов через Gulp:

$ rails s
> gulp watch
gulp[1624]: ../src/node_contextify.cc:635:static void node::contextify::ContextifyScript::New(const FunctionCallbackInfo<v8::Value> &): Assertion `args[1]->IsString()' failed.

Все говорят просто rm -rf node_modules/, rm package-lock.json, npm i, npm audit fix, но я получаю это:

$ npm audit fix
npm ERR! 400 Bad Request - POST https://registry.npmjs.org/-/npm/v1/security/audits

Мой пакет.json выглядит следующим образом:

  "name": "gulp-app",
  "description": "Description",
  "author": "Your Name",
  "version": "0.1.0",
  "scripts": {
    "start": "gulp watch",
    "build": "gulp build"
  },
  "dependencies": {},
  "devDependencies": {
    "breakpoint-sass": "^2.7.0",
    "compass-mixins": "",
    "gulp": "^3.9.1",
    "gulp-cli": "^1.2.1",
    "gulp-concat": "^2.6.0",
    "gulp-notify": "^3.0.0",
    "gulp-run": "^1.7.1",
    "gulp-sass": "^2.3.2",
    "gulp-sourcemaps": "^1.6.0",
    "susy": "^2.2.14"
  }
}

1 Ответ

0 голосов
/ 12 января 2019

Это может быть признаком отсутствия версии, объявленной в package.json

Это исправляет это для меня:
"compass-mixins": "^0.12.6", вместо "compass-mixins": "",

Тогда вы можете просто rm -rf node_modules/, rm package-lock.json, npm i, npm audit fix ... и затем попробовать rails s снова.

...