Comments (8)
What happens when you babel ./modules -d lib --ignore 'tests'
?
from history.
Maybe you can try remove your node_modules and re-install again. I encountered same issue when I switch my node version.
from history.
Good suggestion, @chentsulin. @thefringeninja Please try that and let us know how it goes.
from history.
This is a bug. Windows 7. npm 1.3.21.
The install did work only after adding react-router to package.json and running:
>npm update react-router babel ./modules -d lib --ignore 'tests'
Wouldn't install using the same command with "install". Wouldn't install after removing node_modules either.
from history.
I pushed some updates this morning that should help @approots. See 65cb316. Can you try that and tell me if your problem is fixed?
from history.
Thanks. Different error now:
C:\wamp\www\want2work\w2w_assets\node_modules\history\npm-scripts\postinstall.js
:5
execSync(command, { stdio: [0, 1, 2] })
^
TypeError: undefined is not a function
at exec (C:\wamp\www\want2work\w2w_assets\node_modules\history\npm-scripts\p
ostinstall.js:5:3)
at C:\wamp\www\want2work\w2w_assets\node_modules\history\npm-scripts\postins
tall.js:10:5
at Object.oncomplete (fs.js:107:15)
npm ERR! [email protected] postinstall: `node npm-scripts/postinstall.js`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the history package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node npm-scripts/postinstall.js
npm ERR! You can get their info via:
npm ERR! npm owner ls history
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "history" "--save
"
npm ERR! cwd C:\wamp\www\want2work\w2w_assets
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\wamp\www\want2work\w2w_assets\npm-debug.log
npm ERR! not ok code 0
from history.
Try updating to node 4
On Fri, Oct 9, 2015 at 3:57 PM Rick Jolly [email protected] wrote:
Thanks. Different error now:
C:\wamp\www\want2work\w2w_assets\node_modules\history\npm-scripts\postinstall.js
:5
execSync(command, { stdio: [0, 1, 2] })
^
TypeError: undefined is not a function
at exec (C:\wamp\www\want2work\w2w_assets\node_modules\history\npm-scripts\p
ostinstall.js:5:3)
at C:\wamp\www\want2work\w2w_assets\node_modules\history\npm-scripts\postins
tall.js:10:5
at Object.oncomplete (fs.js:107:15)
npm ERR! [email protected] postinstall:node npm-scripts/postinstall.js
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the history package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node npm-scripts/postinstall.js
npm ERR! You can get their info via:
npm ERR! npm owner ls history
npm ERR! There is likely additional logging output above.npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program File
s (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "history" "--save
"
npm ERR! cwd C:\wamp\www\want2work\w2w_assets
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\wamp\www\want2work\w2w_assets\npm-debug.log
npm ERR! not ok code 0β
Reply to this email directly or view it on GitHub
#62 (comment).
from history.
Thanks, that fixed it.
from history.
Related Issues (20)
- state: unknown Object is of type 'unknown'.
- Named exports donβt work with Node.js ESM support HOT 1
- Sourcemaps are blank HOT 1
- Use History in redux actions HOT 2
- Location type should have template for unknown for state HOT 3
- doing history.go() does NOT trigger a blocker callback handler HOT 1
- Did TS declaration file disappear for v4? HOT 4
- Wrong action after clicking on Forward button in browser HOT 3
- Need history.BackTo(string)
- Is it possible to access the history bundled into React Router? HOT 1
- globalHistory.pushState function excuted failed in baidu.app
- [v6] Missing hashType={"noslash"} of HashRouter HOT 3
- [react-router-dom v6] HashRouter support HOT 1
- Add index property to BrowserHistory, HashHistory and corresponding Update
- Why `history.length` is gone? HOT 7
- createBrowserHistory() breaks history URL on iOS 11
- history
- is this project abandoned? HOT 2
- Navigate replace without generate new location.key
- hash history url is not parsed correctly with query params
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 history.