Comments (4)
duplicate #84
from npx.
maybe, it is not an issue of npx
.... i m not sure....
i think, if i install http-server
local, maybe npx can run it.... but....
C:\Users\gaopi\Desktop\export>npm i http-server
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\gaopi\Desktop\export\package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\gaopi\Desktop\export\package.json'
npm WARN export No description
npm WARN export No repository field.
npm WARN export No README data
npm WARN export No license field.
+ [email protected]
added 23 packages in 6.352s
C:\Users\gaopi\Desktop\export>npx http-server ./
Command failed: C:\"Program Files"\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js config get cache --parseable
module.js:487
throw err;
^
Error: Cannot find module 'C:\Program'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3
Command failed: C:\"Program Files"\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js config get cache --parseable
module.js:487
throw err;
^
Error: Cannot find module 'C:\Program'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3
C:\Users\gaopi\Desktop\export>
from npx.
i think the problem is here https://github.com/zkat/npx/blob/latest/index.js#L205
from npx.
ok, get it, lets go to #84
from npx.
Related Issues (20)
- How to tell what binary gets executed?
- Accessing contents of a binary package
- npx -p touch nodetouch gulpfile.js
- --no-install should be default behavior HOT 1
- Won't traverse to parents if dir has package.json?
- Is this project dead? HOT 6
- Scoped packages, with "install" in the title, trigger "npm install"
- TypeError: Cannot read property 'loaded' of undefined
- Feature Request: support --prefix like npm, to run npx in another base directory
- Too many vulnerabilities HOT 4
- `---no-install` also when the package exists
- Cannot find module 'internal/util/types' when doing npm install -g npx
- npx rimraf fails as part of prepare script when publishing
- After removing space in path I'm getting this issue...
- Benefit of this over npm run? HOT 5
- Why doesn't npx work with @vue/cli?
- Webpack-cli postinstall script fails to run
- Minor typo on auto-fallback.js
- is there a way to use npx to run local version of node?
- cannot run "npx @babel/cli" HOT 1
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 npx.