Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM not working. npm run start nor npm run deploy. I don't remember changing anything in the code. I just wanted to update my file #6

Open
ghost opened this issue Dec 7, 2018 · 7 comments

Comments

@ghost
Copy link

ghost commented Dec 7, 2018

`PS C:\modern_portfolio> npm run deploy

[email protected] deploy C:\modern_portfolio
gh-pages -d dist

error: cannot spawn sh: No such file or directory
fatal: unable to fork

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] deploy: gh-pages -d dist
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] deploy 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\willi\AppData\Roaming\npm-cache_logs\2018-12-07T01_08_54_886Z-debug.log
PS C:\modern_portfolio>`

@ghost
Copy link
Author

ghost commented Dec 7, 2018

`PS C:\modern_portfolio> npm run start
npm ERR! missing script: start

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\willi\AppData\Roaming\npm-cache_logs\2018-12-07T01_18_16_812Z-debug.log
PS C:\modern_portfolio>`

@ashirafzal
Copy link

ashirafzal commented Dec 7, 2018 via email

@ghost
Copy link
Author

ghost commented Dec 7, 2018 via email

@sancharid37
Copy link

I have the same Problem what is the solution?

@sancharid37
Copy link

sancharid37 commented Feb 2, 2019

C:\Users\user\portfolio> npm run sass

[email protected] sass C:\Users\user\portfolio
node-sass -w scss/ -o dist/css/ --recursive

fs.js:115
throw err;
^

Error: ENOENT: no such file or directory, lstat 'scss/'
at Object.lstatSync (fs.js:841:3)
at Object.module.exports.parseDir (C:\Users\user\portfolio\node_modules\sass-graph\sass-graph.js:153:10)
at Object.watcher.reset (C:\Users\user\portfolio\node_modules\node-sass\lib\watcher.js:17:21)
at watch (C:\Users\user\portfolio\node_modules\node-sass\bin\node-sass:260:20)
at run (C:\Users\user\portfolio\node_modules\node-sass\bin\node-sass:319:5)
at Object. (C:\Users\user\portfolio\node_modules\node-sass\bin\node-sass:405:3)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] sass: node-sass -w scss/ -o dist/css/ --recursive
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] sass 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\user\AppData\Roaming\npm-cache_logs\2019-02-02T18_39_49_514Z-debug.log

@meetmerchant
Copy link

C:\Users\user\portfolio> npm run sass

[email protected] sass C:\Users\user\portfolio
node-sass -w scss/ -o dist/css/ --recursive

fs.js:115
throw err;
^

Error: ENOENT: no such file or directory, lstat 'scss/'
at Object.lstatSync (fs.js:841:3)
at Object.module.exports.parseDir (C:\Users\user\portfolio\node_modules\sass-graph\sass-graph.js:153:10)
at Object.watcher.reset (C:\Users\user\portfolio\node_modules\node-sass\lib\watcher.js:17:21)
at watch (C:\Users\user\portfolio\node_modules\node-sass\bin\node-sass:260:20)
at run (C:\Users\user\portfolio\node_modules\node-sass\bin\node-sass:319:5)
at Object. (C:\Users\user\portfolio\node_modules\node-sass\bin\node-sass:405:3)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] sass: node-sass -w scss/ -o dist/css/ --recursive
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] sass 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\user\AppData\Roaming\npm-cache_logs\2019-02-02T18_39_49_514Z-debug.log

Hey Im getting the same error, whats the solution? Could you solve it?

@enigmacoder-bot
Copy link

It seems that node-sass package is outdated.
Instead of using node-sass, just install sass
npm install sass
and in the package.json change scripts to "sass": "sass --watch scss:dist/css "
web-dev
hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants