-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 run ERR #994
Comments
This is probably an issue with cross-env on Windows. |
How do I fix that? |
What happens when you try |
node_modules/.bin/cross-env : O arquivo C:\Users\filip\Desktop\fpedu\node_modules.bin\cross-env.ps1 não pode ser carregado porque a
|
Can you provide this in english? |
Sorry. I did put * after translated phrases/parts node_modules/.bin/cross-env NODE_ENV=development webpack-dev-server - ...
|
Seems to be related to Powershell and the security settings of your system. |
Or take a look at https://go.microsoft.com/fwlink/?LinkID=135170. |
The stackoverflow solution did not work, I will try some other ExecPs |
Tysm |
OS: Win10
I did install vuecli and start a simple model project called fpedu at my desktop.
I followed the instrutions and used npm install at project's folder.
I did fix automatically some vunerabilities found at installation.
I was tryna run 'npm run dev' and I got an error
Full log:
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dev'
1 verbose cli ]
2 info using npm@6.13.4
3 info using node@v12.16.1
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle fpedu@1.0.0
predev: fpedu@1.0.0dev: fpedu@1.0.06 info lifecycle fpedu@1.0.0
7 verbose lifecycle fpedu@1.0.0
dev: unsafe-perm in lifecycle truedev: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\filip\Desktop\fpedu\node_modules.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\nodejs;C:\Users\filip\AppData\Local\Microsoft\WindowsApps;C:\Users\filip\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\filip\AppData\Local\Continuum\anaconda3;C:\Users\filip\AppData\Local\Continuum\anaconda3\Scripts;C:\Users\filip\AppData\Roaming\npm8 verbose lifecycle fpedu@1.0.0
9 verbose lifecycle fpedu@1.0.0
dev: CWD: C:\Users\filip\Desktop\fpedudev: Args: [10 silly lifecycle fpedu@1.0.0
10 silly lifecycle '/d /s /c',
10 silly lifecycle 'cross-env NODE_ENV=development webpack-dev-server --open --hot'
10 silly lifecycle ]
11 silly lifecycle fpedu@1.0.0
dev: Returned: code: 1 signal: nulldev: Failed to exec dev script12 info lifecycle fpedu@1.0.0
13 verbose stack Error: fpedu@1.0.0 dev:
cross-env NODE_ENV=development webpack-dev-server --open --hot
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:311:20)
13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:311:20)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
14 verbose pkgid fpedu@1.0.0
15 verbose cwd C:\Users\filip\Desktop\fpedu
16 verbose Windows_NT 10.0.16299
17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "dev"
18 verbose node v12.16.1
19 verbose npm v6.13.4
20 error code ELIFECYCLE
21 error errno 1
22 error fpedu@1.0.0 dev:
cross-env NODE_ENV=development webpack-dev-server --open --hot
22 error Exit status 1
23 error Failed at the fpedu@1.0.0 dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
The text was updated successfully, but these errors were encountered: