I’ve got a maven project, within which is JavaScript project cloned as a git sub-module. So the directory structure looks like mavenapp/src/main/javascript/[npm project files]
Inside my package.json, the test looks like this:
"test": "react-scripts test --env=jsdom",
but when I try to run npm test
, it says
‘react-scripts’ is not recognized as an internal or external command,
Interestingly, when I clone the javascript project independently I don’t get this error. I’ve tried re-running npm install
.
NPM version: 5.5.1
Node.js version: 9.3.0
Related Posts:
- Reactjs – Form input validation
- After $npm install, Getting Error: Cannot find module ‘../lib/utils/unsupported.js’
- SyntaxError: Adjacent JSX elements must be wrapped in an enclosing tag
- Failed to compile. Module not found: Can’t resolve ‘react-router-dom’
- how to use react require syntax?
- “React.Children.only expected to receive a single React element child” error when putting
and in a - map function for objects (instead of arrays)
- Invariant Violation: Objects are not valid as a React child
- Invariant Violation: Objects are not valid as a React child
- “SyntaxError: Unexpected token < in JSON at position 0"
- How to use Redirect in the new react-router-dom of Reactjs
- TypeError: Converting circular structure to JSON in nodejs
- Babel 7 – ReferenceError: regeneratorRuntime is not defined
- How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
- Understanding unique keys for array children in React.js
- Getting a UnhandledPromiseRejectionWarning when testing using mocha/chai
- Difference between npx and npm?
- How can a Discord bot create a hyperlink in a Discord message in an embed or in general?
- Getting a UnhandledPromiseRejectionWarning when testing using mocha/chai
- Error: Can’t set headers after they are sent to the client
- Express error – TypeError: Router.use() requires middleware function but got a Object
- TypeScript React.FC
confusion - Heroku: “No default language could be detected for this app” error thrown for node app
- Heroku: “No default language could be detected for this app” error thrown for node app
- Loop inside React JSX
- Can’t resolve module (not found) in React.js
- TypeError: Router.use() requires middleware function but got a Object
- how to render a react component using ReactDOM Render
- React this.setState is not a function
- Parse Error: Adjacent JSX elements must be wrapped in an enclosing tag
- ReferenceError: fetch is not defined
- In reactJS, how to copy text to clipboard?
- Invalid shorthand property initializer
- nodejs – error self signed certificate in certificate chain
- What is prevState in ReactJS? [duplicate]
- React with ES7: Uncaught TypeError: Cannot read property ‘state’ of undefined
- What’s the source of Error: getaddrinfo EAI_AGAIN?
- Setting a backgroundImage With React Inline Styles
- React – TypeError: Cannot read property ‘props’ of undefined
- Why is process.env.NODE_ENV undefined?
- How to pass props to {this.props.children}
- How can I mock an ES6 module import using Jest?
- React Context vs React Redux, when should I use each one?
- How to import image (.svg, .png ) in a React Component
- Uncaught TypeError: Cannot read property ‘props’ of null
- TypeError: Router.use() requires middleware function but got a Object
- React Error: Target Container is not a DOM Element
- SyntaxError: Cannot use import statement outside a module
- How to determine the installed webpack version
- node.js TypeError: path must be absolute or specify root to res.sendFile [failed to parse JSON]
- How to handle the `onKeyPress` event in ReactJS?
- How to properly export an ES6 class in Node 4?
- Expressjs / Node.js – res.redirect() not loading page
- Using async/await with a forEach loop
- MissingSchemaError: Schema hasn’t been registered for model “User”
- What does “export default” do in JSX?
- Basic Ajax send/receive with node.js
- Cannot find module ‘internal/fs’ after upgrading to node 7
- Uncaught Invariant Violation: Too many re-renders. React limits the number of renders to prevent an infinite loop
- Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode
- node-request – Getting error “SSL23_GET_SERVER_HELLO:unknown protocol”
- React.js – Can’t read property of undefined
- module.exports “Module is not defined”
- how to download file in react js
- Trying to use fetch and pass in mode: no-cors
- React’s setState method with prevState argument
- Pass react component as props
- Uncaught TypeError: Cannot read property ‘call’ of undefined at __webpack_require__
- How to fix Cannot find module ‘typescript’ in Angular 4?
- How to clear react-native cache?
- Async/await in componentDidMount to load in correct order
- Error: Cannot find module html
- npm WARN enoent ENOENT: no such file or directory, open ‘C:\Users\Nuwanst\package.json’
- Can’t perform a React state update on an unmounted component
- This.props.dispatch not a function – React-Redux
- React-Router : What is the purpose of IndexRoute?
- How to add a keyboard listener to my onClick handler?
- React router not showing browser history
- command not found: jest
- Maximum call stack size exceeded on npm install
- SyntaxError: Use of const in strict mode
- ReactJS – .JS vs .JSX
- ReactJS: Maximum update depth exceeded error
- How to fix Error: listen EADDRINUSE while using NodeJS?
- Error: listen EACCES 0.0.0.0:80 OSx Node.js
- React, Uncaught ReferenceError: ReactDOM is not defined
- How to allow CORS in react.js?
- How to format a UTC date as a `YYYY-MM-DD hh:mm:ss` string using NodeJS?
- Invariant Violation: _registerComponent(…): Target container is not a DOM element
- What counts as CPU Intensive tasks (eg. sorting, searching etc?)
- Uncaught ReferenceError: React is not defined
- events.js: 141 throw er; // Unhandled ‘error’ event
- What does “export default” do in JSX?
- Write / add data in JSON file using Node.js
- where is create-react-app webpack config and files?
- JSX not allowed in files with extension ‘ .js’ with eslint-config-airbnb
- What does `node –harmony` do?
- Getting “Cannot call a class as a function” in my React Project
- Error: Couldn’t find preset “es2015” relative to directory “/Users/username”
- Using Angular 2 without TypeScript Transpiler