laravel / framework

The Laravel Framework.
https://laravel.com
MIT License
32.51k stars 11.02k forks source link

i cannot run npm start #35122

Closed TrendTrickster closed 4 years ago

TrendTrickster commented 4 years ago

Description:

confusion@1.0.0 start C:\Users\Acer\Desktop\Pranava Web Development\bootstrap 4\Bootstrap4\conFusion

npm run watch:all

confusion@1.0.0 watch:all C:\Users\Acer\Desktop\Pranava Web Development\bootstrap 4\Bootstrap4\conFusion parallelshell "npm run watch:scss" "npm run lite"

child_process.js:422 throw new ERR_INVALID_ARG_TYPE('options.cwd', 'string', options.cwd); ^

TypeError [ERR_INVALID_ARG_TYPE]: The "options.cwd" property must be of type string. Received type function at normalizeSpawnArguments (child_process.js:422:11) at spawn (child_process.js:532:38) at C:\Users\Acer\Desktop\Pranava Web Development\bootstrap 4\Bootstrap4\conFusion\node_modules\parallelshell\index.js:104:17 at Array.forEach () at Object. (C:\Users\Acer\Desktop\Pranava Web Development\bootstrap 4\Bootstrap4\conFusion\node_modules\parallelshell\index.js:100:6) 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) at Function.Module._load (internal/modules/cjs/loader.js:530:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! confusion@1.0.0 watch:all: parallelshell "npm run watch:scss" "npm run lite" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the confusion@1.0.0 watch:all 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\Acer\AppData\Roaming\npm-cache_logs\2020-11-06T01_33_07_538Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! confusion@1.0.0 start: npm run watch:all npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the confusion@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\Acer\AppData\Roaming\npm-cache_logs\2020-11-06T01_33_07_644Z-debug.log

Steps To Reproduce:

wizard0822 commented 4 years ago

Are you running Laravel / Vue.js? In laravel 8.x, it provides Jetstream / Inertia as default. In case npm doesn't run properly, you can remove package.json lock file, and then update npm modules again.

Another solution is to move source project to primary disk (i.e D or E, not C)

JamesFreeman commented 4 years ago

You might be running an old version of node/npm. If you are running an old version, I would recommend upgrading it.

driesvints commented 4 years ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

TrendTrickster commented 4 years ago

Hey.

Thanks for your response to this question , But I am not using laravel I am Using Git, Node Js, Visual Studio.

I cannot run NPM START in the cmd as i change the package.json file start: npm run watch:all

On Fri, Nov 6, 2020 at 2:47 PM Dries Vints notifications@github.com wrote:

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

β€” You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/laravel/framework/issues/35122#issuecomment-722970365, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARHW6AWDWLXUCEYXFC5VXRTSOO5JTANCNFSM4TMC7W7Q .

TrendTrickster commented 4 years ago

Kindly Help Me in This as I am Just a Beginner. I am Creating a Website.

I am Learning In coursera About This.

Please πŸ™πŸ™πŸ™πŸ™

On Fri, Nov 6, 2020 at 6:57 PM Trend Trickster paayapaman9947@gmail.com wrote:

Hey.

Thanks for your response to this question , But I am not using laravel I am Using Git, Node Js, Visual Studio.

I cannot run NPM START in the cmd as i change the package.json file start: npm run watch:all

On Fri, Nov 6, 2020 at 2:47 PM Dries Vints notifications@github.com wrote:

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

β€” You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/laravel/framework/issues/35122#issuecomment-722970365, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARHW6AWDWLXUCEYXFC5VXRTSOO5JTANCNFSM4TMC7W7Q .

tejirimakel commented 2 years ago

try downgrading from npm install --save-dev parallelshell@3.0.2 to npm install --save-dev parallelshell@3.0.1