Comments (6)
Thank you for reporting, this is interesting! I'm wondering how we could convince your machine to find npm.
Could you do me a favor and try the following?
- Open fiddle
- Open the developer tools (
Help - Show developer tools
) - In the console, enter the following:
require('child_process').execSync('which npm').toString()
. Let me know what the output is! It likely won't find npm, but we should cover that first. - Then, let's see what we can and cannot find:
require('child_process').execSync('echo $PATH').toString()
- Lastly, in a terminal, enter
which npm
and let me know where it lives.
Thanks!
from fiddle.
require('child_process').execSync('which npm').toString()
child_process.js:656 Uncaught Error: Command failed: which npm
at checkExecSyncError (child_process.js:613)
at Object.execSync (child_process.js:653)
at Object.execSync (ELECTRON_ASAR.js:728)
at <anonymous>:1:26
require('child_process').execSync('echo $PATH').toString()
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
"
$ which npm
/home/tosho/.nvm/versions/node/v10.8.0/bin/npm
from fiddle.
Thanks a ton! I think we can fix this.
from fiddle.
I'm still getting this on MacOS 10.15.6
which npm
gives me /Users/tommedema/.nvm/versions/node/v12.14.1/bin/npm
from fiddle.
how do you fixed it please?
from fiddle.
My fixed steps
- Open fiddle
- Open the developer tools (Help - Toggle developer tools)
- Excute following code in developer-tools console to find the current shell,
require('child_process').execSync('echo $SHELL').toString()
- Get npm path at you System terminal
which npm
- Config npm path enviroment for the shell at step 3; eg: zsh shell is .zshrc;
- Restart the fiddle
from fiddle.
Related Issues (20)
- Environment variables with extra '=' don't work
- I cannot add an icon. HOT 1
- Improve UX Handling if Multiple Main Files
- Error launching app | Electron exited with signal SIGTERM. | Electron exited with code 3489660927. HOT 4
- modules (dependencies) don't work: Error: Cannot find module HOT 5
- Cannot load local file. HOT 1
- `Follow Link` does not work in console or editor
- Handle missing local Electron.app
- Release links broken on electronjs.org HOT 1
- Confusing error if Gist contains invalid `package.json`
- Better UX for expired PAT for Gist publishing HOT 2
- Run from ASAR
- Endless 'Checking Status' Spinner when github release not found
- it does not open HOT 1
- Add the ZIP files to the releases
- cmd+k to clear the console HOT 2
- [Bug]: Electron fiddle downloads are 404ing
- Open/save dialog is not modal HOT 1
- Add support for .mts files in Jest configuration
- Notify new user about the default option : User data directory automatically deleted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fiddle.