311243 (5) [Avatar] Offline
#1
When I go into the letters-social directory and type "npm run dev", I get the error message below. It's apparently looking for a directory called

"E:\ReactInAction\letters-social\node_modules\node-sass\vendor",

but the vendor directory doesn't exist in my node-sass directory.

Windows 10
npm 6.4.1
node 8.14.0




PS E:\ReactInAction\letters-social> npm run dev

> letters-social@1.0.0 dev E:\ReactInAction\letters-social
> cross-env NODE_ENV=development npm-run-all -p api client:dev server:dev styles:w


> letters-social@1.0.0 api E:\ReactInAction\letters-social
> nodemon -x node -r @std/esm ./db/run.js


> letters-social@1.0.0 client:dev E:\ReactInAction\letters-social
> webpack-dev-server --config ./build/webpack.config.js


> letters-social@1.0.0 styles:w E:\ReactInAction\letters-social
> npm run styles && node-sass src/styles/styles.scss -o static/ -w src/styles --watch --recursive


> letters-social@1.0.0 server:dev E:\ReactInAction\letters-social
> nodemon --config nodemon.json index.js


> letters-social@1.0.0 styles E:\ReactInAction\letters-social
> node-sass -q src/styles/styles.scss -o static/

fs.js:904
  return binding.readdir(pathModule._makeLong(path), options.encoding);
                 ^

Error: ENOENT: no such file or directory, scandir 'E:\ReactInAction\letters-social\node_modules\node-sass\vendor'
    at Object.fs.readdirSync (fs.js:904:18)
    at Object.getInstalledBinaries (E:\ReactInAction\letters-social\node_modules\node-sass\lib\extensions.js:129:13)
    at foundBinariesList (E:\ReactInAction\letters-social\node_modules\node-sass\lib\errors.js:20:15)
    at foundBinaries (E:\ReactInAction\letters-social\node_modules\node-sass\lib\errors.js:15:5)
    at Object.module.exports.missingBinary (E:\ReactInAction\letters-social\node_modules\node-sass\lib\errors.js:45:5)
    at module.exports (E:\ReactInAction\letters-social\node_modules\node-sass\lib\binding.js:15:30)
    at Object.<anonymous> (E:\ReactInAction\letters-social\node_modules\node-sass\lib\index.js:14:35)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! letters-social@1.0.0 styles: `node-sass -q src/styles/styles.scss -o static/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the letters-social@1.0.0 styles 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\ssinai\AppData\Roaming\npm-cache\_logs\2018-12-12T07_14_35_743Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! letters-social@1.0.0 styles:w: `npm run styles && node-sass src/styles/styles.scss -o static/ -w src/styles --watch --recursive`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the letters-social@1.0.0 styles:w 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\ssinai\AppData\Roaming\npm-cache\_logs\2018-12-12T07_14_35_774Z-debug.log
ERROR: "styles:w" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! letters-social@1.0.0 dev: `cross-env NODE_ENV=development npm-run-all -p api client:dev server:dev styles:w`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the letters-social@1.0.0 dev 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\ssinai\AppData\Roaming\npm-cache\_logs\2018-12-12T07_14_36_008Z-debug.log
PS E:\ReactInAction\letters-social>



311243 (5) [Avatar] Offline
#2
I ended up removing letters-social/node_modules

Than reinstalled with

npm install
npm rebuild node-sass

That seemed to do the trick.
mark (60) [Avatar] Offline
#3
Strange! Maybe an issue with windows? node-sass often causes issues with cross-platform environments