Я пытался разрешить сообщение об ошибке при запуске npm start в проекте Django.Я использовал этот учебник Кейта Деканта .
Проведя пару часов в поисках утки (поиск) в Интернете :), я решил обратиться к вам за помощью.Вот сообщение об ошибке, которое я получаю:
[0] npm WARN invalid config loglevel="notice"
[2] npm WARN invalid config loglevel="notice"
[0]
[0] > my_project@1.0.0 css-watch C:\Users\ED\Environments\my_project\my_project
[0] > node-sass my_project/static/scss -o my_project/static/css --watch
[0]
[2]
[2] > my_project@1.0.0 browser-sync C:\Users\ED\Environments\my_project\my_project
[2] > browser-sync start --files "my_project/static/css/*.css, my_project/static/js/*.js, my_project/**/*.py, my_project/templates/*.html" --proxy 127.0.0.1:8000 --reload-delay=300 --reload-debounce=500
[2]
[0] fs.js:994
[0] binding.lstat(pathModule._makeLong(path), statValues);
[0] ^
[0]
[0] Error: ENOENT: no such file or directory, lstat 'C:\Users\ED\Environments\my_project\my_project\my_project\static\scss'
[0] at Error (native)
[0] at Object.fs.lstatSync (fs.js:994:11)
[0] at Object.module.exports.parseDir (C:\Users\ED\Environments\my_project\my_project\node_modules\sass-graph\sass-graph.js:153:10)
[0] at Object.watcher.reset (C:\Users\ED\Environments\my_project\my_project\node_modules\node-sass\lib\watcher.js:17:21)
[0] at watch (C:\Users\ED\Environments\my_project\my_project\node_modules\node-sass\bin\node-sass:260:20)
[0] at run (C:\Users\ED\Environments\my_project\my_project\node_modules\node-sass\bin\node-sass:319:5)
[0] at Object.<anonymous> (C:\Users\ED\Environments\my_project\my_project\node_modules\node-sass\bin\node-sass:405:3)
[0] at Module._compile (module.js:570:32)
[0] at Object.Module._extensions..js (module.js:579:10)
[0] at Module.load (module.js:487:32)
[0] npm ERR! code ELIFECYCLE
[0] npm ERR! errno 1
[0] npm ERR! my_project@1.0.0 css-watch: `node-sass my_project/static/scss -o my_project/static/css --watch`
[0] npm ERR! Exit status 1
[0] npm ERR!
[0] npm ERR! Failed at the my_project@1.0.0 css-watch script.
[0] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[0]
[0] npm ERR! A complete log of this run can be found in:
[0] npm ERR! C:\Users\ED\AppData\Roaming\npm-cache\_logs\2018-06-12T14_49_28_316Z-debug.log
[0] npm run css-watch exited with code 1
--> Sending SIGTERM to other processes..
[1] python manage.py runserver exited with code 1
[2] npm run browser-sync exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my_project@1.0.0 start: `concurrently --kill-others "npm run css-watch" "python manage.py runserver" "npm run browser-sync" `
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my_project@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ED\AppData\Roaming\npm-cache\_logs\2018-06-12T14_49_28_559Z-debug.log
Кто-нибудь сталкивался с подобной проблемой раньше?Поиск в интернете нигде не обещал